From e5c778fa4382633898d5a95def937f93b7f75835 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 16 Jul 2015 03:29:06 +0100 Subject: [PATCH] ITS#8173 fix SEGV after failed retry --- servers/slapd/back-ldap/bind.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index 598dae3fd9..20197f3ed4 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -271,6 +271,8 @@ retry:; if ( ldap_back_retry( &lc, op, rs, LDAP_BACK_BIND_SERR ) ) { goto retry; } + if ( !lc ) + return( rc ); } ldap_pvt_thread_mutex_lock( &li->li_counter_mutex ); -- 2.39.5