Subject: Postfix 19990906 Patch01

From: [email-masked] (Wietse Venema)
Date: Tue, 7 Sep 1999 11:23:13 -0400 (EDT)

The reject_non_fqdn_sender feature used the wrong test to see if
a sender address was given, and could dump core. This must have
been broken ever since the UCE tests were moved to the RCPT TO
stage in 19990510, which implies that Postfix version 19990601 and
snapshot 19990627 have the same problem.

The patch below fixes Postfix-19990906. A fully-patched version
is being made available via the usual FTP servers, primary site
ftp://ftp.porcupine.org/mirrors/postfix-release/official/

	Wietse

Prereq: "Postfix-19990906"
*** ./global/mail_version.h-	Mon Sep  6 17:47:37 1999
--- ./global/mail_version.h	Tue Sep  7 11:13:11 1999
***************
*** 15,21 ****
    * Version of this program.
    */
  #define VAR_MAIL_VERSION	"mail_version"
! #define DEF_MAIL_VERSION	"Postfix-19990906"
  extern char *var_mail_version;
  
  /* LICENSE
--- 15,21 ----
    * Version of this program.
    */
  #define VAR_MAIL_VERSION	"mail_version"
! #define DEF_MAIL_VERSION	"Postfix-19990906-pl01"
  extern char *var_mail_version;
  
  /* LICENSE
*** ./smtpd/smtpd_check.c-	Sun Sep  5 22:46:57 1999
--- ./smtpd/smtpd_check.c	Tue Sep  7 11:00:14 1999
***************
*** 1391,1397 ****
  	return (1);
      }
      if (strcasecmp(name, REJECT_NON_FQDN_SENDER) == 0) {
! 	if (*state->sender)
  	    *status = reject_non_fqdn_address(state, state->sender,
  					  state->sender, SMTPD_NAME_SENDER);
  	return (1);
--- 1391,1397 ----
  	return (1);
      }
      if (strcasecmp(name, REJECT_NON_FQDN_SENDER) == 0) {
! 	if (state->sender)
  	    *status = reject_non_fqdn_address(state, state->sender,
  					  state->sender, SMTPD_NAME_SENDER);
  	return (1);
*** ./HISTORY-	Mon Sep  6 15:35:14 1999
--- ./HISTORY	Tue Sep  7 11:16:48 1999
***************
*** 3039,3041 ****
--- 3039,3048 ----
  	and for upgrading Postfix. It replaces files instead of
  	overwriting them, and leaves existing configuration and
  	queue files intact.
+ 
+ 19990907
+ 
+ 	Bugfix: reject_non_fqdn_sender used the wrong test to see
+ 	if a sender address was given and could dump core. This
+ 	must have been broken ever since the UCE tests were moved
+ 	to the RCPT TO stage in 19990510.