masqmail-0.2

diff src/smtp_in.c @ 135:b072426cc6bb

fixed defer_all code it was broken during refactoring this morning
author meillo@marmaro.de
date Tue, 06 Jul 2010 13:46:51 +0200
parents f9d5469cb648
children 6b78aaced5e1
line diff
     1.1 --- a/src/smtp_in.c	Tue Jul 06 13:45:42 2010 +0200
     1.2 +++ b/src/smtp_in.c	Tue Jul 06 13:46:51 2010 +0200
     1.3 @@ -176,9 +176,12 @@
     1.4  	while ((len = read_sockline(in, buffer, BUF_LEN, 5 * 60, READSOCKL_CHUG)) >= 0) {
     1.5  		cmd_id = get_id(buffer);
     1.6  
     1.7 -		if (conf.defer_all) {  /* I need this to debug delivery failures */
     1.8 +		if (conf.defer_all) {
     1.9 +			/* I need this to debug delivery failures */
    1.10  			smtp_printf(out, "421 %s service temporarily unavailable.\r\n", conf.host_name);
    1.11 -			break;
    1.12 +			destroy_message(msg);
    1.13 +			msg = NULL;
    1.14 +			return;
    1.15  		}
    1.16  
    1.17  		switch (cmd_id) {