From aa8c95a24a612a4e3b221f8f54b6564aeaba9449 Mon Sep 17 00:00:00 2001 From: Mark Valence Date: Sun, 5 Dec 1999 22:22:37 +0000 Subject: [PATCH] Bug fix. == NULL changed to != NULL before freeing mem. --- libraries/libldap/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );