diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-01-20 01:31:39 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-01-20 01:31:39 +0000 |
commit | 1ae17617bd8cb2d76ec211de303016c5a74f6c29 (patch) | |
tree | c7d6a02695fad2c5437402699dd1e70d4b1a4e8d /gnu/usr.sbin/sendmail/libmilter/smfi.c | |
parent | c7d21fbd347633d602d10bff760f1a8b99f03778 (diff) |
Add missing va_end() calls, patch sent to sendmail folks.
Diffstat (limited to 'gnu/usr.sbin/sendmail/libmilter/smfi.c')
-rw-r--r-- | gnu/usr.sbin/sendmail/libmilter/smfi.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/usr.sbin/sendmail/libmilter/smfi.c b/gnu/usr.sbin/sendmail/libmilter/smfi.c index 4a4132f083e..da5c5c58ef4 100644 --- a/gnu/usr.sbin/sendmail/libmilter/smfi.c +++ b/gnu/usr.sbin/sendmail/libmilter/smfi.c @@ -430,18 +430,20 @@ smfi_setmlreply(ctx, rcode, xcode, va_alist) tl = strlen(txt); if (tl > MAXREPLYLEN) - return MI_FAILURE; + break; /* this text, reply codes, \r\n */ len += tl + 2 + rlen; if (++args > MAXREPLIES) - return MI_FAILURE; + break; /* XXX check also for unprintable chars? */ if (strpbrk(txt, "\r\n") != NULL) - return MI_FAILURE; + break; } SM_VA_END(ap); + if (txt != NULL) + return MI_FAILURE; /* trailing '\0' */ ++len; |