From 092aade42871308a09f51b7bfaa60a3a6d95956e Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 14 May 2006 15:11:23 +0000 Subject: [PATCH] cleanup --- servers/slapd/passwd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.39.5