]> git.puffer.fish Git - mirror/frr.git/commit
eigrpd: sizeof() usage + dead code (PVS-Studio) 2600/head
authorF. Aragon <paco@voltanet.io>
Mon, 2 Jul 2018 14:44:46 +0000 (16:44 +0200)
committerF. Aragon <paco@voltanet.io>
Mon, 2 Jul 2018 14:44:46 +0000 (16:44 +0200)
commit885c8244cf3c489aac096202486e4d20491612f4
treeeadf4d36280ffae74e0f7c2ae6cb753a41b1d2fb
parent8d6d6b2581be7c60ab4913df1adf46098a3dc4ae
eigrpd: sizeof() usage + dead code (PVS-Studio)

Two issues:

1) Removed an unnecesary null check of 'ei'
2) Fixed the usage of sizeof(), as it was used the size of a pointer instead
   of the size of the structure

Signed-off-by: F. Aragon <paco@voltanet.io>
eigrpd/eigrp_packet.c