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
This commit is contained in:
Ben Klang
2006-10-17 22:58:39 +00:00
parent b6fa291705
commit 76b51f23ee

View File

@@ -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;