aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pflocal/socket.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pflocal/socket.c b/pflocal/socket.c
index 2baa1efe..8f90da2d 100644
--- a/pflocal/socket.c
+++ b/pflocal/socket.c
@@ -466,7 +466,7 @@ S_socket_getopt (struct sock_user *user,
pipe = sock->read_pipe;
if (!pipe)
{
- ret = EPIPE;
+ ret = ENOTCONN;
break;
}
*(int *)*value = pipe->write_limit;
@@ -481,7 +481,7 @@ S_socket_getopt (struct sock_user *user,
pipe = sock->write_pipe;
if (!pipe)
{
- ret = EPIPE;
+ ret = ENOTCONN;
break;
}
*(int *)*value = pipe->write_limit;
@@ -560,7 +560,7 @@ S_socket_setopt (struct sock_user *user,
pipe = sock->read_pipe;
if (!pipe)
{
- ret = EPIPE;
+ ret = ENOTCONN;
break;
}
@@ -594,7 +594,7 @@ S_socket_setopt (struct sock_user *user,
pipe = sock->write_pipe;
if (!pipe)
{
- ret = EPIPE;
+ ret = ENOTCONN;
break;
}