]> 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)
committerHoward Chu <hyc@openldap.org>
Thu, 16 Jul 2015 02:29:06 +0000 (03:29 +0100)
servers/slapd/back-ldap/bind.c

index 598dae3fd99837e1d0d37e1ccc13dc96c8aa0339..20197f3ed4db5a5288401efc318000c49c542b80 100644 (file)
@@ -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 );