]> git.sur5r.net Git - openldap/commitdiff
ITS#8173 fix SEGV after failed retry
authorHoward Chu <hyc@openldap.org>
Thu, 16 Jul 2015 02:29:06 +0000 (03:29 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 21 Aug 2015 21:51:05 +0000 (16:51 -0500)
servers/slapd/back-ldap/bind.c

index 87eef16e1cc980b3c23462d982bb1c1e2b625e82..8be8172f4d5104a3b69bb18097eb9232bfc8f44a 100644 (file)
@@ -273,6 +273,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 );