From 7002e4f8a52d25acbef635fd0775001f9a743bd5 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 22 Jun 2005 22:44:22 +0000 Subject: [PATCH] Fix ITS#3792 segfault on failed SASL bind if no mech was specified --- servers/slapd/syncrepl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2