]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fix reporting of RIP socket errors. Thanks to Eric Leblond for the patch.
authorMartin Mares <mj@ucw.cz>
Sat, 6 Dec 2003 16:41:11 +0000 (16:41 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 6 Dec 2003 16:41:11 +0000 (16:41 +0000)
proto/rip/rip.c

index 68f9f1c3ae65a06bf974fcaefd7a8880e0adee8e..392a687fa0cfd746194e98ae4a95b0fb77952a63 100644 (file)
@@ -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 );
 }