]> git.sur5r.net Git - openldap/commitdiff
safe defaults
authorPierangelo Masarati <ando@openldap.org>
Thu, 3 Apr 2003 21:40:04 +0000 (21:40 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 3 Apr 2003 21:40:04 +0000 (21:40 +0000)
servers/slapd/bind.c

index 1348e46e8a071322ad354a302d1e8c0fcf3ec649..0eea2b823f4ccf6c725fbec4314797ed49d9ef6f 100644 (file)
@@ -650,9 +650,11 @@ cleanup:
 
        if( op->o_req_dn.bv_val != NULL ) {
                free( op->o_req_dn.bv_val );
+               op->o_req_dn.bv_val = NULL;
        }
        if( op->o_req_ndn.bv_val != NULL ) {
                free( op->o_req_ndn.bv_val );
+               op->o_req_ndn.bv_val = NULL;
        }
 
        return rs->sr_err;