From 6896a2be62b24c4b47c39819ad1b5469f706016b Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 20 Jan 1999 01:01:28 +0000 Subject: [PATCH] Import auto init bug fix. --- clients/tools/ldappasswd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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++) -- 2.47.2