bagajjal 2017-05-07 22:51:24 -07:00 committed by Manoj Ampalam
parent fae64876f3
commit 7d929c2954
2 changed files with 9 additions and 1 deletions

View File

@ -181,7 +181,7 @@ check_secure_file_permission(const char *name, struct passwd * pw)
}
cleanup:
if(bad_user)
free(bad_user);
LocalFree(bad_user);
if (pSD)
LocalFree(pSD);
if (user_sid)

8
sshd.c
View File

@ -1674,6 +1674,14 @@ main(int ac, char **av)
/* Fill in default values for those options not explicitly set. */
fill_default_server_options(&options);
#ifdef WINDOWS
/*
* For windows, enable logging right away to capture failures while loading private host keys.
* On Unix, logging at configured level is not done until private host keys are loaded. Why??
*/
log_init(__progname, options.log_level, options.log_facility, log_stderr);
#endif // WINDOWS
/* challenge-response is implemented via keyboard interactive */
if (options.challenge_response_authentication)
options.kbd_interactive_authentication = 1;