From 76b51f23eed40c523d4ea32d228cdd10f6067dfd Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Tue, 17 Oct 2006 22:58:39 +0000 Subject: [PATCH] Fix password read from environment variable. Thanks Nick Gregory for the report. git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@380 06cd67b6-e706-0410-b29e-9de616bca6e9 --- ldap2dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldap2dns.c b/ldap2dns.c index ba8308d..c429115 100644 --- a/ldap2dns.c +++ b/ldap2dns.c @@ -265,6 +265,7 @@ static int parse_options() fclose(ldap_conf); } strcpy(options.binddn, ""); + strcpy(options.password, ""); len = strlen(main_argv[0]); if (strcmp(main_argv[0]+len-9, "ldap2dnsd")==0) { options.is_daemon = 1; @@ -297,7 +298,6 @@ static int parse_options() } options.verbose = 0; options.ldifname[0] = '\0'; - strcpy(options.password, ""); strcpy(options.exec_command, ""); while (1) { int this_option_optind = optind ? optind : 1;