]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorPierangelo Masarati <ando@openldap.org>
Sun, 14 May 2006 15:11:23 +0000 (15:11 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 14 May 2006 15:11:23 +0000 (15:11 +0000)
servers/slapd/passwd.c

index 90d666dd8f2994ca29bdc36e459d62edeff2fd87..ddd3b27ef2b151e6335d6b1b82a77a023f81bcde 100644 (file)
@@ -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)