]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Fix ITS#3792 segfault on failed SASL bind if no mech was specified
authorHoward Chu <hyc@openldap.org>
Wed, 22 Jun 2005 22:44:22 +0000 (22:44 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 22 Jun 2005 22:44:22 +0000 (22:44 +0000)
servers/slapd/syncrepl.c

index 23488bf2cf456c5ec701add02352f83c65be7574..fbdf1d86fc6183c89fa7a1b11ddc7317bc8d0d3b 100644 (file)
@@ -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;