OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: PATCH: Re: signal 11 with smtpd_sasl_auth_enable = no and check_policy_service

From: Wietse Venema (wietseporcupine.org)
Date: Mon May 03 2004 - 10:38:45 CDT


Victor.DuchovniMorganStanley.com:
> On Mon, 3 May 2004, David Schweikert wrote:
>
> > Hi,
> >
> > I am experiencing signal 11 crashes of the smtpd process.
> >
> > * Config 2: signal 11
> >
> > smtpd_sasl_auth_enable = no
> >
> > smtpd_recipient_restrictions =
> > ...
> > check_policy_service inet:127.0.0.1:9998
> > permit
> >
>
> Index: src/smtpd/smtpd_state.c
> --- src/smtpd/smtpd_state.c 22 Apr 2004 03:46:13 -0000 1.1.1.1
> +++ src/smtpd/smtpd_state.c 3 May 2004 14:52:30 -0000
> -117,6 +117,11
> var_smtpd_sasl_enable = 0;
> if (var_smtpd_sasl_enable)
> smtpd_sasl_connect(state, VAR_SMTPD_SASL_OPTS, var_smtpd_sasl_opts);
> + else {
> + state->sasl_username = 0;
> + state->sasl_method = 0;
> + state->sasl_sender = 0;
> + }
> #endif
>
> /*

I'll update the policy client to not access SASL state info when
var_smtpd_sasl_enable is false, the same guard that is being used
everywhere else in the SMTP server.

        Wietse