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:
parent
7d4789dccb
commit
1682b42b87
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user