From f319ad1eba15fbb0f387a0b5246bd0b8f4b36dcf Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Wed, 14 Mar 2012 15:47:01 -0400 Subject: [PATCH] Fix the SMTP code so it doesn't end up in a hard loop during a DATA command. --- mts/smtp/smtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 1.7.10.4