mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 10:37:29 +00:00
eigrpd: fix clang warning
nbr cannot be NULL. Doing such test does confuse clang since we do not have execution case if nbr == NULL. Signed-off-by: Vincent Jardin <vincent.jardin@6wind.com>
This commit is contained in:
parent
e991f75cb8
commit
6c86ed54c2
@ -169,7 +169,7 @@ int eigrp_check_md5_digest(struct stream *s,
|
|||||||
struct TLV_MD5_Authentication_Type *auth_TLV;
|
struct TLV_MD5_Authentication_Type *auth_TLV;
|
||||||
struct eigrp_header *eigrph;
|
struct eigrp_header *eigrph;
|
||||||
|
|
||||||
if (nbr && ntohl(nbr->crypt_seqnum) > ntohl(authTLV->key_sequence)) {
|
if (ntohl(nbr->crypt_seqnum) > ntohl(authTLV->key_sequence)) {
|
||||||
zlog_warn(
|
zlog_warn(
|
||||||
"interface %s: eigrp_check_md5 bad sequence %d (expect %d)",
|
"interface %s: eigrp_check_md5 bad sequence %d (expect %d)",
|
||||||
IF_NAME(nbr->ei), ntohl(authTLV->key_sequence),
|
IF_NAME(nbr->ei), ntohl(authTLV->key_sequence),
|
||||||
|
Loading…
Reference in New Issue
Block a user