(pop3d_readline): Fixed misguiding diagnostics. Check for eof.
Showing
1 changed file
with
6 additions
and
1 deletions
... | @@ -251,7 +251,12 @@ pop3d_readline (char *buffer, size_t size) | ... | @@ -251,7 +251,12 @@ pop3d_readline (char *buffer, size_t size) |
251 | 251 | ||
252 | if (stream_strerror (ostream, &p)) | 252 | if (stream_strerror (ostream, &p)) |
253 | p = strerror (errno); | 253 | p = strerror (errno); |
254 | syslog (LOG_ERR, _("write failed: %s"), p); | 254 | syslog (LOG_ERR, _("read failed: %s"), p); |
255 | pop3d_abquit (ERR_NO_OFILE); | ||
256 | } | ||
257 | else if (nbytes == 0) | ||
258 | { | ||
259 | syslog (LOG_ERR, _("unexpected eof on input")); | ||
255 | pop3d_abquit (ERR_NO_OFILE); | 260 | pop3d_abquit (ERR_NO_OFILE); |
256 | } | 261 | } |
257 | 262 | ... | ... |
-
Please register or sign in to post a comment