mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 01:40:33 +00:00
zebra: Fix crash on *BSD
The zns->ns pointer is not created until we get a callback from the kernel that a ns exists. This should potentially fix a crash in the *BSD code path. Fixes: #2152 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
4fb6f51928
commit
898a23caa7
@ -1386,7 +1386,7 @@ static void routing_socket(struct zebra_ns *zns)
|
||||
zlog_err("routing_socket: Can't raise privileges");
|
||||
|
||||
routing_sock =
|
||||
ns_socket(AF_ROUTE, SOCK_RAW, 0, (ns_id_t)zns->ns->ns_id);
|
||||
ns_socket(AF_ROUTE, SOCK_RAW, 0, zns->ns_id);
|
||||
|
||||
if (routing_sock < 0) {
|
||||
if (zserv_privs.change(ZPRIVS_LOWER))
|
||||
|
Loading…
Reference in New Issue
Block a user