mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 10:08:41 +00:00
commit
037f162fe9
@ -172,7 +172,7 @@ struct key *key_match_for_accept(const struct keychain *keychain,
|
||||
if (key->accept.start == 0
|
||||
|| (key->accept.start <= now
|
||||
&& (key->accept.end >= now || key->accept.end == -1)))
|
||||
if (strncmp(key->string, auth_str, 16) == 0)
|
||||
if (key->string && (strncmp(key->string, auth_str, 16) == 0))
|
||||
return key;
|
||||
}
|
||||
return NULL;
|
||||
|
@ -828,7 +828,7 @@ static int rip_auth_simple_password(struct rte *rte, struct sockaddr_in *from,
|
||||
struct key *key;
|
||||
|
||||
keychain = keychain_lookup(ri->key_chain);
|
||||
if (keychain == NULL)
|
||||
if (keychain == NULL || keychain->key == NULL)
|
||||
return 0;
|
||||
|
||||
key = key_match_for_accept(keychain, auth_str);
|
||||
|
Loading…
Reference in New Issue
Block a user