]> git.sur5r.net Git - openldap/commitdiff
Bug fix. == NULL changed to != NULL before freeing mem.
authorMark Valence <mrv@openldap.org>
Sun, 5 Dec 1999 22:22:37 +0000 (22:22 +0000)
committerMark Valence <mrv@openldap.org>
Sun, 5 Dec 1999 22:22:37 +0000 (22:22 +0000)
libraries/libldap/open.c

index 8a3be3ac4967ac5e3eee89dc4061295d360ed5f0..399bd792cfe766e8cabd96ee246b97aeee53c451 100644 (file)
@@ -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 );