From: Ken Hornstein Date: Wed, 14 Mar 2012 19:47:01 +0000 (-0400) Subject: Fix the SMTP code so it doesn't end up in a hard loop during a DATA X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=f319ad1eba15fbb0f387a0b5246bd0b8f4b36dcf;p=mmh Fix the SMTP code so it doesn't end up in a hard loop during a DATA command. --- diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index b7135f5..5e4b7bd 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -1496,7 +1496,7 @@ sm_rrecord (char *buffer, int *len) buffer[*len = 0] = 0; if ((retval = sm_fgets (buffer, BUFSIZ, sm_rfp)) != RP_OK) - return retval; + return sm_rerror (retval); *len = strlen (buffer); /* *len should be >0 except on EOF, but check for safety's sake */ if (*len == 0)