From: Mark Valence Date: Sun, 5 Dec 1999 22:22:37 +0000 (+0000) Subject: Bug fix. == NULL changed to != NULL before freeing mem. X-Git-Tag: UCDATA_2_4~142 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aa8c95a24a612a4e3b221f8f54b6564aeaba9449;p=openldap Bug fix. == NULL changed to != NULL before freeing mem. --- diff --git a/libraries/libldap/open.c b/libraries/libldap/open.c index 8a3be3ac49..399bd792cf 100644 --- a/libraries/libldap/open.c +++ b/libraries/libldap/open.c @@ -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 );