[Postfix espanol] PATCH #2: smtpd command log memory exhaustion bug

Wietse Venema wietse en porcupine.org
Jue Nov 15 16:22:56 CET 2001


This patch completes the fix for the SMTP session log memory
exhaustion bug that was sent out last night.

The patch below applies to any Postfix release that was issued in
the year 2001. Fully patched releases will be made available via
the usual web sites listed in www.postfix.org.

Primary site:

    ftp://ftp.porcupine.org/mirrors/postfix-release/index.html

Releases:

    snapshot-20011115

    postfix-20010228-pl08

Happy Postfixing!

        Wietse

*** ./smtpd.c-	Wed Nov 14 22:21:46 2001
--- ./smtpd.c	Thu Nov 15 09:44:30 2001
***************
*** 1069,1074 ****
--- 1069,1075 ----
      if (state->history != 0 && state->client != VSTREAM_IN
  	&& (state->error_mask & state->notify_mask))
  	smtpd_chat_notify(state);
+     state->error_mask = 0;
      smtpd_chat_reset(state);
  
      /*
***************
*** 1094,1099 ****
--- 1095,1113 ----
  	smtpd_chat_reply(state, "501 Syntax: RSET");
  	return (-1);
      }
+ 
+     /*
+      * Notify the postmaster if there were errors. This usually indicates a
+      * client configuration problem, or that someone is trying nasty things.
+      * Either is significant enough to bother the postmaster. XXX Can't
+      * report problems when running in stand-alone mode: postmaster notices
+      * require availability of the cleanup service.
+      */
+     if (state->history != 0 && state->client != VSTREAM_IN
+ 	&& (state->error_mask & state->notify_mask))
+ 	smtpd_chat_notify(state);
+     state->error_mask = 0;
+     smtpd_chat_reset(state);
  
      /*
       * Restore state to right after HELO/EHLO command.

-
Para quitarte de la lista enviar la linea "unsubscribe postfix-espanol" en
el cuerpo de un mensaje a majordomo en unicorn.ea4els.ampr.org



Más información sobre la lista de distribución Postfix-es