]> git.proxmox.com Git - mirror_frr.git/commit
ripd: rip_snmp.c - Remove not needed check
authorIlya Shipitsin <chipitsine@gmail.com>
Thu, 5 Apr 2018 20:09:56 +0000 (20:09 +0000)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 11 Apr 2018 11:35:20 +0000 (07:35 -0400)
commit47e5a60f296d6d8f1fd656c98bf48525a7a7dfc1
treec93ef1f79091c0a708309c50cffbb57b0e4118b9
parent0742ce0a861193f19fe890b8b8d50924a692cb3b
ripd: rip_snmp.c - Remove not needed check

rn cannot be null here

issue detected by cppcheck:

[ripd/rip_snmp.c:208] -> [ripd/rip_snmp.c:207]: (warning) Either the condition
'if(rn&&!strncmp(i->name,ifp->name,INTERFACE_NAMSIZ))' is redundant or there is
possible null pointer dereference: rn.

Signed-off-by: Ilya Shipitsin <chipitsine@gmail.com>
ripd/rip_snmp.c