From: Howard Chu Date: Wed, 22 Jun 2005 22:44:22 +0000 (+0000) Subject: Fix ITS#3792 segfault on failed SASL bind if no mech was specified X-Git-Tag: OPENLDAP_REL_ENG_2_2_28~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7002e4f8a52d25acbef635fd0775001f9a743bd5;p=thirdparty%2Fopenldap.git Fix ITS#3792 segfault on failed SASL bind if no mech was specified --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 23488bf2cf..fbdf1d86fc 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -306,7 +306,7 @@ do_syncrep1( /* FIXME (see above comment) */ /* if Kerberos credentials cache is not active, retry */ - if ( strcmp( si->si_saslmech, "GSSAPI" ) == 0 && + if ( si->si_saslmech && !strcmp( si->si_saslmech, "GSSAPI" ) && rc == LDAP_LOCAL_ERROR ) { rc = LDAP_SERVER_DOWN;