mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Bug fix. == NULL changed to != NULL before freeing mem.
This commit is contained in:
parent
7d98b59dfa
commit
aa8c95a24a
@ -182,7 +182,7 @@ ldap_init( LDAP_CONST char *defhost, int defport )
|
||||
|
||||
if (( ld->ld_selectinfo = ldap_new_select_info()) == NULL ) {
|
||||
LDAP_FREE( (char*) ld->ld_options.ldo_defhost );
|
||||
if ( ld->ld_options.ldo_defbase == NULL ) {
|
||||
if ( ld->ld_options.ldo_defbase != NULL ) {
|
||||
LDAP_FREE( (char*) ld->ld_options.ldo_defbase );
|
||||
}
|
||||
LDAP_FREE( (char*) ld );
|
||||
|
Loading…
Reference in New Issue
Block a user