Fix for a missing NULL assignment in ssh-agent. Found through appVerifier

This commit is contained in:
Manoj Ampalam 2016-09-30 12:10:07 -07:00
parent f5226a3b70
commit 8efe020478
2 changed files with 247 additions and 246 deletions

View File

@ -194,7 +194,7 @@ agent_listen_loop() {
verbose("Failed to create child process %ls ERROR:%d", module_path, GetLastError()); verbose("Failed to create child process %ls ERROR:%d", module_path, GetLastError());
} }
else { else {
debug("spawned child %d ", pi.dwProcessId); debug("spawned worker %d for agent client pid %d ", pi.dwProcessId, client_pid);
CloseHandle(pi.hProcess); CloseHandle(pi.hProcess);
CloseHandle(pi.hThread); CloseHandle(pi.hThread);
} }

View File

@ -338,6 +338,7 @@ int process_pubkeyauth_request(struct sshbuf* request, struct sshbuf* response,
{ {
wchar_t *tmp, *userW, *domW; wchar_t *tmp, *userW, *domW;
userW = wuser; userW = wuser;
domW = NULL;
if ((tmp = wcschr(userW, L'\\')) != NULL) { if ((tmp = wcschr(userW, L'\\')) != NULL) {
domW = userW; domW = userW;
userW = tmp + 1; userW = tmp + 1;