diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-06-27 01:22:42 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-06-27 01:23:55 +0200 |
commit | 750b3b1619e55117d3070a0deeda80ae2b88afca (patch) | |
tree | 6527d2a03f943219f8bfa3afbc5fe7d62002edf6 /pflocal | |
parent | b290be35e0717ad68d9a851974e7fcfedc88c448 (diff) | |
download | hurd-750b3b1619e55117d3070a0deeda80ae2b88afca.tar.gz hurd-750b3b1619e55117d3070a0deeda80ae2b88afca.tar.bz2 hurd-750b3b1619e55117d3070a0deeda80ae2b88afca.zip |
pflocal: Fix setsockopt(SO_SNDBUF)
* pflocal/socket.c (S_socket_setopt): Make SO_SNDBUF use write_pipe
instead of read_pipe.
Diffstat (limited to 'pflocal')
-rw-r--r-- | pflocal/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pflocal/socket.c b/pflocal/socket.c index 65503bc0..2baa1efe 100644 --- a/pflocal/socket.c +++ b/pflocal/socket.c @@ -591,7 +591,7 @@ S_socket_setopt (struct sock_user *user, if (new > PFLOCAL_WRITE_LIMIT_MAX) new = PFLOCAL_WRITE_LIMIT_MAX; - pipe = sock->read_pipe; + pipe = sock->write_pipe; if (!pipe) { ret = EPIPE; |