]> git.sur5r.net Git - openldap/commitdiff
ITS#3033 fix debug msg segv
authorHoward Chu <hyc@openldap.org>
Sat, 20 Mar 2004 09:51:33 +0000 (09:51 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 20 Mar 2004 09:51:33 +0000 (09:51 +0000)
servers/slapd/saslauthz.c

index 50d9d297ddbd8c87c15cb4b06a169ef3be9d1cc4..40b454d82f480b8b89345d12520b961e7a6ed582 100644 (file)
@@ -561,6 +561,7 @@ static int sasl_sc_sasl2dn( Operation *o, SlapReply *rs )
        if( ndn->bv_val ) {
                o->o_tmpfree(ndn->bv_val, o->o_tmpmemctx);
                ndn->bv_val = NULL;
+               ndn->bv_len = 0;
 
 #ifdef NEW_LOGGING
                LDAP_LOG( TRANSPORT, DETAIL1,