Missing credentials are correctly honoured now

This commit is contained in:
Simon Rozman 2016-07-21 14:21:33 +02:00
parent b4667cac18
commit 955d7f5dc1

View File

@ -362,7 +362,7 @@ DWORD WINAPI EapPeerInvokeIdentityUI(
eap::config_providers cfg(g_peer);
_EAPMETHOD_PEER_UI::credentials_type cred(g_peer);
if ( !g_peer.unpack(cfg, pConnectionData, dwConnectionDataSize, ppEapError) ||
!g_peer.unpack(cred, pUserData, dwUserDataSize, ppEapError) ||
dwUserDataSize && !g_peer.unpack(cred, pUserData, dwUserDataSize, ppEapError) ||
!g_peer.invoke_identity_ui(hwndParent, dwFlags, cfg, cred, ppwszIdentity, ppEapError) ||
!g_peer.pack(cred, ppUserDataOut, pdwUserDataOutSize, ppEapError))
{