From: Martin Mares Date: Sat, 6 Dec 2003 16:41:11 +0000 (+0000) Subject: Fix reporting of RIP socket errors. Thanks to Eric Leblond for the patch. X-Git-Tag: v1.2.0~415 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=502ded521508a402910b2bf8f23f2e34f79f91cb;p=thirdparty%2Fbird.git Fix reporting of RIP socket errors. Thanks to Eric Leblond for the patch. --- diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 68f9f1c3a..392a687fa 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -79,7 +79,7 @@ static struct rip_interface *new_iface(struct proto *p, struct iface *new, unsig static void rip_tx_err( sock *s, int err ) { - struct rip_connection *c = s->data; + struct rip_connection *c = ((struct rip_interface *)(s->data))->busy; struct proto *p = c->proto; log( L_ERR "%s: Unexpected error at rip transmit: %M", P_NAME, err ); }