mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:33:44 +03:00
c-hyper: fix NTLM on closed connection tested with test159
Closes #7154
This commit is contained in:
parent
dddad339e8
commit
83036d86af
2 changed files with 21 additions and 2 deletions
|
|
@ -1212,8 +1212,12 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||
}
|
||||
|
||||
#ifdef USE_HYPER
|
||||
if(conn->datastream)
|
||||
return conn->datastream(data, conn, &didwhat, done, select_res);
|
||||
if(conn->datastream) {
|
||||
result = conn->datastream(data, conn, &didwhat, done, select_res);
|
||||
if(result || *done)
|
||||
return result;
|
||||
}
|
||||
else {
|
||||
#endif
|
||||
/* We go ahead and do a read if we have a readable socket or if
|
||||
the stream was rewound (in which case we have data in a
|
||||
|
|
@ -1232,6 +1236,9 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||
if(result)
|
||||
return result;
|
||||
}
|
||||
#ifdef USE_HYPER
|
||||
}
|
||||
#endif
|
||||
|
||||
k->now = Curl_now();
|
||||
if(!didwhat) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue