From 21393d8c5e36afad3b16dd28c6bc64ad7512635b Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sat, 21 Dec 1996 05:55:55 +0000 Subject: [PATCH] FIx coredump with rtquery. It is just quick fix taken from new routed sources, full new routed importing I leave to wollman --- sbin/routed/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;