From: Howard Chu Date: Thu, 16 Jul 2015 02:29:06 +0000 (+0100) Subject: ITS#8173 fix SEGV after failed retry X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e5c778fa4382633898d5a95def937f93b7f75835;p=openldap ITS#8173 fix SEGV after failed retry --- 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 );