1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-12 18:13:50 -05:00

Tiny patch from Martin Packman to fix a Windows handle leak in

Pageant's IPC mechanism. It's incomplete (he sent a much more
comprehensive set of fixes that I haven't reviewed), but should be
adequate to mitigate a particular issue for Bazaar users.

[originally from svn r9355]
This commit is contained in:
Simon Tatham 2011-11-28 19:23:43 +00:00
parent 7d4789dccb
commit 1682b42b87

View File

@ -1938,8 +1938,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