diff options
-rw-r--r-- | proto/rip/rip.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 6e3f8cd..0819319 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" ); |