mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-03 20:32:22 +00:00
Merge pull request #2763 from lyq140/master
ripd: null check the key string
This commit is contained in:
commit
aa0b1d3b60
@ -902,7 +902,7 @@ static int rip_auth_md5(struct rip_packet *packet, struct sockaddr_in *from,
|
||||
return 0;
|
||||
|
||||
key = key_lookup_for_accept(keychain, md5->keyid);
|
||||
if (key == NULL)
|
||||
if (key == NULL || key->string == NULL)
|
||||
return 0;
|
||||
|
||||
strncpy(auth_str, key->string, RIP_AUTH_MD5_SIZE);
|
||||
|
Loading…
Reference in New Issue
Block a user