mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-26 15:34:37 +02:00
Fix for a missing NULL assignment in ssh-agent. Found through appVerifier
This commit is contained in:
parent
f5226a3b70
commit
8efe020478
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user