From: Kurt Zeilenga Date: Wed, 20 Jan 1999 01:01:28 +0000 (+0000) Subject: Import auto init bug fix. X-Git-Tag: OPENLDAP_REL_ENG_1_2_BETA~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6896a2be62b24c4b47c39819ad1b5469f706016b;p=thirdparty%2Fopenldap.git Import auto init bug fix. --- diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index 03113bb3b7..02cd291e08 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -146,7 +146,10 @@ gen_pass (unsigned int len) const unsigned char autogen[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890.,"; int i; - Salt salt = {NULL, 0}; + Salt salt; + + salt.salt = NULL; + salt.len = 0; make_salt (&salt, len); for (i = 0; i < len; i++)