]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Thu, 13 Nov 2003 21:42:06 +0000 (21:42 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 13 Nov 2003 21:42:06 +0000 (21:42 +0000)
servers/slapd/saslauthz.c

index 2bc602738e5c8ec8199af17cdebb76ec5cc6ae46..15961c3b8459ac8beb18480c05ae16e56f53701b 100644 (file)
@@ -143,6 +143,10 @@ is_dn:     bv.bv_len = uri->bv_len - (bv.bv_val - uri->bv_val);
 done:
        if( rc != LDAP_SUCCESS ) {
                if( *filter ) filter_free( *filter );
+               base->bv_val = NULL;
+               base->bv_len = 0;
+               fstr->bv_val = NULL;
+               fstr->bv_len = 0;
        } else {
                /* Don't free these, they're returned to caller */
                ludp->lud_filter = NULL;