]> git.sur5r.net Git - openldap/commitdiff
Fix uninit'd ld in prev commit (coverity)
authorHoward Chu <hyc@openldap.org>
Tue, 2 Oct 2007 13:31:27 +0000 (13:31 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 2 Oct 2007 13:31:27 +0000 (13:31 +0000)
servers/slapd/slapi/slapi_utils.c

index d24be09b8205e285ae874b71cd69a6b5544f8b80..928a5e507bf1e9caf8555f0f1811a94b1eb9473c 100644 (file)
@@ -3234,6 +3234,8 @@ LDAP *slapi_ldap_init( char *ldaphost, int ldapport, int secure, int shared )
 
        if ( rc > 0 && rc < size ) {
                rc = ldap_initialize( &ld, url );
+       } else {
+               ld = NULL;
        }
 
        slapi_ch_free_string( &url );