mirror of https://github.com/moparisthebest/curl
Avoid gcc warning "dereferencing type-punned pointer
will break strict-aliasing rules".
This commit is contained in:
parent
e8c3bb45ba
commit
06c3bec65d
|
@ -458,8 +458,9 @@ CURLcode Curl_output_ntlm(struct connectdata *conn,
|
||||||
(PCtxtHandle,PSecBufferDesc);
|
(PCtxtHandle,PSecBufferDesc);
|
||||||
HMODULE hSecur32 = GetModuleHandle("secur32.dll");
|
HMODULE hSecur32 = GetModuleHandle("secur32.dll");
|
||||||
if (hSecur32 != NULL) {
|
if (hSecur32 != NULL) {
|
||||||
*((void**)&pCompleteAuthToken) =
|
pCompleteAuthToken =
|
||||||
(void*)GetProcAddress(hSecur32, "CompleteAuthToken");
|
(SECURITY_STATUS (__stdcall *)(PCtxtHandle,PSecBufferDesc))
|
||||||
|
GetProcAddress(hSecur32, "CompleteAuthToken");
|
||||||
if( pCompleteAuthToken != NULL ) {
|
if( pCompleteAuthToken != NULL ) {
|
||||||
pCompleteAuthToken(&ntlm->c_handle, &desc);
|
pCompleteAuthToken(&ntlm->c_handle, &desc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue