Commit 8ed81720 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

secur32: Set error flag on pull callback.

Fixes a regression introduced in b8aaf86b Partial revert the pull_timeout function, which now return -1 and sets the transport error to try again. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51440Signed-off-by: 's avatarAlistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: 's avatarHans Leidekker <hans@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent d60c450c
......@@ -292,7 +292,15 @@ static DWORD CDECL schan_get_enabled_protocols(void)
static int pull_timeout(gnutls_transport_ptr_t transport, unsigned int timeout)
{
return 0;
struct schan_transport *t = (struct schan_transport*)transport;
gnutls_session_t s = (gnutls_session_t)callbacks->get_session_for_transport(t);
SIZE_T count = 0;
TRACE("\n");
if (callbacks->get_buffer(t, &t->in, &count)) return 1;
pgnutls_transport_set_errno(s, EAGAIN);
return -1;
}
static BOOL CDECL schan_create_session(schan_session *session, schan_credentials *cred)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment