freebsd-ports/mail/popular/files/patch-src-io.c
Pav Lucistnik b6ab23fb4f POPular is a suite of programs for setting up large POP3 server systems. It
consists of a POP3 proxy, a storage server and lots of utility programs. Note
that this program is intended to be used in large email systems and is
therefore quite complex to configure. If you only have a few thousand
mailboxes, you are probably better of with a different POP3 server.
2005-08-30 14:09:24 +00:00

12 lines
476 B
C

--- src/io.c.orig Sat Aug 21 12:19:29 2004
+++ src/io.c Mon Jul 11 16:16:50 2005
@@ -307,7 +307,8 @@
* A null byte was encountered in input from a network socket. This
* can never happen in a normal POP3 connection. */
xlog_printf(xlog_adm, 0x0035, "null_byte_in_input ctx='%s' len=%d data='%s'", ioc->io_desc, len, buf);
- errno = EPROTO;
+ /* Uh oh, nice to overload socket errcos for application level signalization */
+ errno = EPIPE;
return -1;
}
}