projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86c5a52
)
Fix the SMTP code so it doesn't end up in a hard loop during a DATA
author
Ken Hornstein
<kenh@pobox.com>
Wed, 14 Mar 2012 19:47:01 +0000
(15:47 -0400)
committer
Ken Hornstein
<kenh@pobox.com>
Wed, 14 Mar 2012 19:47:01 +0000
(15:47 -0400)
command.
mts/smtp/smtp.c
patch
|
blob
|
history
diff --git
a/mts/smtp/smtp.c
b/mts/smtp/smtp.c
index
b7135f5
..
5e4b7bd
100644
(file)
--- 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)