Merge pull request #3127 from pacovn/Coverity_1472236_Improper_use_of_negative_value

zebra: netlink socket check (Coverity 1472236)
This commit is contained in:
Donald Sharp 2018-10-04 09:26:33 -04:00 committed by GitHub
commit 15007d0053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1107,7 +1107,6 @@ void kernel_init(struct zebra_ns *zns)
if (nl_rcvbufsize)
netlink_recvbuf(&zns->netlink, nl_rcvbufsize);
assert(zns->netlink.sock >= 0);
netlink_install_filter(zns->netlink.sock,
zns->netlink_cmd.snl.nl_pid);
zns->t_netlink = NULL;