1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-04 21:12:47 -05:00

Fixed GSSAPI authentication.

gssapi32.dll from MIT Kerberos as well as from Heimdal both load
further DLLs from their installation directories.

[SGT: I polished the original patch a bit, in particular replacing
manual memory allocation with dup_mb_to_wc. This required a Recipe
change to link miscucs.c and winucs.c into more of the tools.]
This commit is contained in:
Christopher Odenbach
2017-04-03 21:30:18 +02:00
committed by Simon Tatham
parent d2653e79ab
commit 802b4edf4d
4 changed files with 70 additions and 8 deletions

View File

@ -176,8 +176,10 @@ void dll_hijacking_protection(void)
}
if (p_SetDefaultDllDirectories) {
/* LOAD_LIBRARY_SEARCH_SYSTEM32 only */
p_SetDefaultDllDirectories(0x800);
/* LOAD_LIBRARY_SEARCH_SYSTEM32 and explicitly specified
* directories only */
p_SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_SYSTEM32 |
LOAD_LIBRARY_SEARCH_USER_DIRS);
}
}