FIx coredump with rtquery.
It is just quick fix taken from new routed sources, full new routed importing I leave to wollman
This commit is contained in:
parent
51b4f9f625
commit
21393d8c5e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user