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:

committed by
Simon Tatham

parent
d2653e79ab
commit
802b4edf4d
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user