1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-05-09 21:52:10 -05:00

Merge r9355 (Pageant handle leak fix).

[originally from svn r9356]
[r9355 == 1682b42b87f441cf1e80ec72e82eecf1726eb99b]
This commit is contained in:
Simon Tatham 2011-11-28 19:24:15 +00:00
parent 1a75923669
commit 59c0bb3f8a

View File

@ -1928,8 +1928,10 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
}
#endif
if (!EqualSid(mapowner, ourself) &&
!EqualSid(mapowner, ourself2))
!EqualSid(mapowner, ourself2)) {
CloseHandle(filemap);
return 0; /* security ID mismatch! */
}
#ifdef DEBUG_IPC
debug(("security stuff matched\n"));
#endif