diff options
author | ache <ache@FreeBSD.org> | 1996-12-21 05:55:55 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-12-21 05:55:55 +0000 |
commit | 8b70a73ddfff7053ba730857c4bf22bc2d08a87d (patch) | |
tree | 98e075bdab05d0cf228f108214d5e38d214d2f47 /sbin | |
parent | 6fa47e50e623cb8008adfa9973880f747d67ac1a (diff) | |
download | FreeBSD-src-8b70a73ddfff7053ba730857c4bf22bc2d08a87d.zip FreeBSD-src-8b70a73ddfff7053ba730857c4bf22bc2d08a87d.tar.gz |
FIx coredump with rtquery.
It is just quick fix taken from new routed sources,
full new routed importing I leave to wollman
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/routed/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/routed/input.c b/sbin/routed/input.c index 100bd3d..cfc680d 100644 --- a/sbin/routed/input.c +++ b/sbin/routed/input.c @@ -261,7 +261,7 @@ input(struct sockaddr_in *from, /* received from this IP address */ * already knows it. */ ap = find_auth(aifp); - if (aifp == 0 && ap->type == RIP_AUTH_PW + if (ap != 0 && ap->type == RIP_AUTH_PW && n->n_family == RIP_AF_AUTH && !ck_passwd(aifp,rip,lim,FROM_NADDR,&use_auth)) ap = 0; |