From 83470acc42312d68de9ac62fbc23f03f21c811b7 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 8 Jul 2024 02:18:08 +0200 Subject: pflocal: make S_socket_recv return 0 instead of EPIPE Callers are not expecting to get EPIPE, and rather a real EOF, like is done in S_io_read. --- pflocal/socket.c | 1 + 1 file changed, 1 insertion(+) (limited to 'pflocal') diff --git a/pflocal/socket.c b/pflocal/socket.c index ef54b65b..d60bece3 100644 --- a/pflocal/socket.c +++ b/pflocal/socket.c @@ -404,6 +404,7 @@ S_socket_recv (struct sock_user *user, if (err == EPIPE) /* EOF */ { + err = 0; *data_len = 0; if (num_ports) *num_ports = 0; -- cgit v1.2.3