From: Wietse Venema Date: Tue, 29 May 2007 05:00:00 +0000 (-0500) Subject: postfix-2.5-20070529 X-Git-Tag: v2.5.0-RC1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ad70a3fad6c48f9d8a3a1da7f391a959c4eb092;p=thirdparty%2Fpostfix.git postfix-2.5-20070529 --- diff --git a/postfix/HISTORY b/postfix/HISTORY index 091c48df1..3c6c986e3 100644 --- a/postfix/HISTORY +++ b/postfix/HISTORY @@ -13565,9 +13565,15 @@ Apologies for any names omitted. 20070525 - Bugfix (introduced 20070523) the sasl_set_path() function + Bugfix (introduced 20070523): the sasl_set_path() function name was mis-speeled. +20070529 + + Bugfix (introduced Postfix 2.3): the sendmail/postdrop + commands would hang when trying to submit a message larger + than the per-message size limit. File: postdrop/postdrop.c. + Wish list: Update attr_print/scan() so they can send/receive file diff --git a/postfix/src/global/mail_version.h b/postfix/src/global/mail_version.h index d11c13f5e..b6d1fc8a2 100644 --- a/postfix/src/global/mail_version.h +++ b/postfix/src/global/mail_version.h @@ -20,7 +20,7 @@ * Patches change both the patchlevel and the release date. Snapshots have no * patchlevel; they change the release date only. */ -#define MAIL_RELEASE_DATE "20070525" +#define MAIL_RELEASE_DATE "20070529" #define MAIL_VERSION_NUMBER "2.5" #ifdef SNAPSHOT diff --git a/postfix/src/postdrop/postdrop.c b/postfix/src/postdrop/postdrop.c index 7668df8da..803363bde 100644 --- a/postfix/src/postdrop/postdrop.c +++ b/postfix/src/postdrop/postdrop.c @@ -438,9 +438,10 @@ int main(int argc, char **argv) if (REC_PUT_BUF(dst->stream, rec_type, buf) < 0) { /* rec_get() errors must not clobber errno. */ saved_errno = errno; - while (rec_get_raw(VSTREAM_IN, buf, var_line_limit, - REC_FLAG_NONE) > 0) - /* void */ ; + while ((rec_type = rec_get_raw(VSTREAM_IN, buf, var_line_limit, + REC_FLAG_NONE)) != REC_TYPE_END) + if (rec_type <= 0) + msg_fatal("uid=%ld: malformed input", (long) uid); errno = saved_errno; break; }