summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2019-04-09 16:59:00 +0200
committerGitHub <noreply@github.com>2019-04-09 16:59:00 +0200
commite3659a9a726e3ec3cd3ca16ab33e04968b1f37ce (patch)
treeefd8d7b75e81087e01363b2ec45da9fa0f38533f /ospfd
parentMerge pull request #4095 from pacovn/201904_master__lm_aliasing_fixes (diff)
parent*: setting the socket send/recv buffer sizes doesn't need elevated privs (diff)
downloadfrr-e3659a9a726e3ec3cd3ca16ab33e04968b1f37ce.tar.xz
frr-e3659a9a726e3ec3cd3ca16ab33e04968b1f37ce.zip
Merge pull request #4102 from opensourcerouting/sendbuf_recvbuf_privs
*: setting the socket send/recv buffer sizes doesn't need elevated privs
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_network.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ospfd/ospf_network.c b/ospfd/ospf_network.c
index e30bb0ffe..1415a6e8b 100644
--- a/ospfd/ospf_network.c
+++ b/ospfd/ospf_network.c
@@ -234,11 +234,11 @@ int ospf_sock_init(struct ospf *ospf)
flog_err(EC_LIB_SOCKET,
"Can't set pktinfo option for fd %d",
ospf_sock);
-
- setsockopt_so_sendbuf(ospf_sock, bufsize);
- setsockopt_so_recvbuf(ospf_sock, bufsize);
}
+ setsockopt_so_sendbuf(ospf_sock, bufsize);
+ setsockopt_so_recvbuf(ospf_sock, bufsize);
+
ospf->fd = ospf_sock;
return ret;
}