mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-10 06:02:10 -05:00
Merge r9355 (Pageant handle leak fix).
[originally from svn r9356] [r9355 == 1682b42b87f441cf1e80ec72e82eecf1726eb99b]
This commit is contained in:
parent
1a75923669
commit
59c0bb3f8a
@ -1928,8 +1928,10 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (!EqualSid(mapowner, ourself) &&
|
if (!EqualSid(mapowner, ourself) &&
|
||||||
!EqualSid(mapowner, ourself2))
|
!EqualSid(mapowner, ourself2)) {
|
||||||
|
CloseHandle(filemap);
|
||||||
return 0; /* security ID mismatch! */
|
return 0; /* security ID mismatch! */
|
||||||
|
}
|
||||||
#ifdef DEBUG_IPC
|
#ifdef DEBUG_IPC
|
||||||
debug(("security stuff matched\n"));
|
debug(("security stuff matched\n"));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user