Fixed "ssh-add -D" regression caused due recent ssh-agent changes

https://github.com/PowerShell/Win32-OpenSSH/issues/798
This commit is contained in:
Manoj Ampalam 2017-07-05 23:10:30 -07:00 committed by GitHub
parent 7cadeeb91b
commit 31bcbea0de
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ process_remove_all(struct sshbuf* request, struct sshbuf* response, struct agent
int r = 0;
if (get_user_root(con, &user_root) != 0 ||
RegOpenKeyExW(user_root, SSH_ROOT, 0,
RegOpenKeyExW(user_root, SSH_AGENT_ROOT, 0,
DELETE | KEY_ENUMERATE_SUB_KEYS | KEY_QUERY_VALUE | KEY_WOW64_64KEY, &root) != 0) {
goto done;
}