diff options
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ospf_network.c | 2 | ||||
-rw-r--r-- | ospfd/ospfd.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_network.c b/ospfd/ospf_network.c index 1415a6e8b..b8e2dac70 100644 --- a/ospfd/ospf_network.c +++ b/ospfd/ospf_network.c @@ -190,7 +190,7 @@ int ospf_sock_init(struct ospf *ospf) /* silently return since VRF is not ready */ return -1; } - frr_elevate_privs(&ospfd_privs) { + frr_with_privs(&ospfd_privs) { ospf_sock = vrf_socket(AF_INET, SOCK_RAW, IPPROTO_OSPFIGP, ospf->vrf_id, ospf->name); if (ospf_sock < 0) { diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c index b91a55f63..e48a5b4d3 100644 --- a/ospfd/ospfd.c +++ b/ospfd/ospfd.c @@ -2097,7 +2097,7 @@ static int ospf_vrf_enable(struct vrf *vrf) old_vrf_id); if (old_vrf_id != ospf->vrf_id) { - frr_elevate_privs(&ospfd_privs) { + frr_with_privs(&ospfd_privs) { /* stop zebra redist to us for old vrf */ zclient_send_dereg_requests(zclient, old_vrf_id); |