diff options
author | F. Aragon <paco@voltanet.io> | 2018-08-03 15:37:02 +0200 |
---|---|---|
committer | F. Aragon <paco@voltanet.io> | 2018-08-03 18:16:09 +0200 |
commit | e940478c026b0ab905d93060f213f50257460bb4 (patch) | |
tree | a193e05257457901b7c7dc9ab7d844fd65d86bea /zebra | |
parent | Merge pull request #2760 from donaldsharp/bgp_patch_from_dev (diff) | |
download | frr-e940478c026b0ab905d93060f213f50257460bb4.tar.xz frr-e940478c026b0ab905d93060f213f50257460bb4.zip |
zebra: socket fd check (Coverity 1472236)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/kernel_netlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c index c627bda4f..a5c2cd69f 100644 --- a/zebra/kernel_netlink.c +++ b/zebra/kernel_netlink.c @@ -1085,6 +1085,7 @@ 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; |