diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2019-04-09 10:59:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-09 10:59:00 -0400 |
| commit | e3659a9a726e3ec3cd3ca16ab33e04968b1f37ce (patch) | |
| tree | efd8d7b75e81087e01363b2ec45da9fa0f38533f /lib/zclient.c | |
| parent | 977e9f37914715390c6aefdc00cd8082e6f7f8b2 (diff) | |
| parent | 338b8e914ab1dc30f56f5bcbabd525d547bbc1ea (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.c | 5 |
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); |
