aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1996-12-21 05:55:55 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1996-12-21 05:55:55 +0000
commit21393d8c5e36afad3b16dd28c6bc64ad7512635b (patch)
tree98e075bdab05d0cf228f108214d5e38d214d2f47
parent51b4f9f6254f65b6ac6a3aedc39d4918dc0589c7 (diff)
downloadsrc-21393d8c5e36afad3b16dd28c6bc64ad7512635b.tar.gz
src-21393d8c5e36afad3b16dd28c6bc64ad7512635b.zip
FIx coredump with rtquery.
It is just quick fix taken from new routed sources, full new routed importing I leave to wollman
Notes
Notes: svn path=/head/; revision=20735
-rw-r--r--sbin/routed/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/routed/input.c b/sbin/routed/input.c
index 100bd3df0c4f..cfc680db8065 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;