summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1997-01-02 16:57:08 +0000
committerwollman <wollman@FreeBSD.org>1997-01-02 16:57:08 +0000
commit892d76ceb15f69c01b14553c164fbceb436312c5 (patch)
treefce4102bd187acc6259cfde4d0f30a5e0fe99999 /sbin
parent9efe665f63a16504b30b113d5affb49909c96542 (diff)
downloadFreeBSD-src-892d76ceb15f69c01b14553c164fbceb436312c5.zip
FreeBSD-src-892d76ceb15f69c01b14553c164fbceb436312c5.tar.gz
Latest version of routed from Vern Schryver. This one really
should fix Andrey's problem.
Diffstat (limited to 'sbin')
-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 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;
OpenPOWER on IntegriCloud