From: Pavel Machek Date: Wed, 26 Jan 2000 14:12:18 +0000 (+0000) Subject: Do not send empty packets in rip. X-Git-Tag: v1.2.0~1343 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd215f8bab7e0d94fa482b47ff8d5971cd5ab799;p=thirdparty%2Fbird.git Do not send empty packets in rip. --- diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 6e3f8cdd6..081931912 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -162,10 +162,14 @@ rip_tx( sock *s ) if (i == !!P_CF->authtype) continue; #endif - if (ipa_nonzero(c->daddr)) - i = sk_send_to( s, packetlen, c->daddr, c->dport ); - else - i = sk_send( s, packetlen ); + if (!i) + DBG( "not sending NULL update\n" ); + else { + if (ipa_nonzero(c->daddr)) + i = sk_send_to( s, packetlen, c->daddr, c->dport ); + else + i = sk_send( s, packetlen ); + } DBG( "it wants more\n" );