From: Pierangelo Masarati Date: Sun, 14 May 2006 15:11:23 +0000 (+0000) Subject: cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~19 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=092aade42871308a09f51b7bfaa60a3a6d95956e;p=openldap cleanup --- diff --git a/servers/slapd/passwd.c b/servers/slapd/passwd.c index 90d666dd8f..ddd3b27ef2 100644 --- a/servers/slapd/passwd.c +++ b/servers/slapd/passwd.c @@ -520,8 +520,7 @@ void slap_passwd_generate( struct berval *pass ) { Debug( LDAP_DEBUG_TRACE, "slap_passwd_generate\n", 0, 0, 0 ); - pass->bv_val = NULL; - pass->bv_len = 0; + BER_BVZERO( pass ); /* * generate passwords of only 8 characters as some getpass(3)