From: Howard Chu Date: Tue, 2 Oct 2007 13:31:27 +0000 (+0000) Subject: Fix uninit'd ld in prev commit (coverity) X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~570 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=396b22cfe21f24e0c2088182dfc271a316645ae5;p=openldap Fix uninit'd ld in prev commit (coverity) --- diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index d24be09b82..928a5e507b 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -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 );