summaryrefslogtreecommitdiffstats
path: root/proto/rip/rip.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2003-12-06 17:41:11 +0100
committerMartin Mares <mj@ucw.cz>2003-12-06 17:41:11 +0100
commit502ded521508a402910b2bf8f23f2e34f79f91cb (patch)
tree4fd3cd841f6b605f0e0699bd3ce1ff72f4f51bae /proto/rip/rip.c
parent37299f1e442f5ca23fd9124d9645096c5a6f7536 (diff)
downloadbird-502ded521508a402910b2bf8f23f2e34f79f91cb.tar
bird-502ded521508a402910b2bf8f23f2e34f79f91cb.zip
Fix reporting of RIP socket errors. Thanks to Eric Leblond for the patch.
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r--proto/rip/rip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 68f9f1c..392a687 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 );
}