summaryrefslogtreecommitdiff
path: root/lib/zclient.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2019-04-09 10:59:00 -0400
committerGitHub <noreply@github.com>2019-04-09 10:59:00 -0400
commite3659a9a726e3ec3cd3ca16ab33e04968b1f37ce (patch)
treeefd8d7b75e81087e01363b2ec45da9fa0f38533f /lib/zclient.c
parent977e9f37914715390c6aefdc00cd8082e6f7f8b2 (diff)
parent338b8e914ab1dc30f56f5bcbabd525d547bbc1ea (diff)
Merge pull request #4102 from opensourcerouting/sendbuf_recvbuf_privs
*: setting the socket send/recv buffer sizes doesn't need elevated privs
Diffstat (limited to 'lib/zclient.c')
-rw-r--r--lib/zclient.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index 92a9d5ef31..e5cab9e0f2 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -212,10 +212,7 @@ int zclient_socket_connect(struct zclient *zclient)
return -1;
set_cloexec(sock);
-
- frr_elevate_privs(zclient->privs) {
- setsockopt_so_sendbuf(sock, 1048576);
- }
+ setsockopt_so_sendbuf(sock, 1048576);
/* Connect to zebra. */
ret = connect(sock, (struct sockaddr *)&zclient_addr, zclient_addr_len);