mirror of
https://github.com/moparisthebest/curl
synced 2025-01-10 21:48:10 -05:00
schannel: fix comparisons between signed and unsigned
This commit is contained in:
parent
2bac074f08
commit
3af5023a20
@ -220,7 +220,7 @@ schannel_connect_step1(struct connectdata *conn, int sockindex)
|
|||||||
/* send initial handshake data which is now stored in output buffer */
|
/* send initial handshake data which is now stored in output buffer */
|
||||||
written = swrite(conn->sock[sockindex], outbuf.pvBuffer, outbuf.cbBuffer);
|
written = swrite(conn->sock[sockindex], outbuf.pvBuffer, outbuf.cbBuffer);
|
||||||
s_pSecFn->FreeContextBuffer(outbuf.pvBuffer);
|
s_pSecFn->FreeContextBuffer(outbuf.pvBuffer);
|
||||||
if(written != outbuf.cbBuffer) {
|
if(outbuf.cbBuffer != (size_t)written) {
|
||||||
failf(data, "schannel: failed to send initial handshake data: %d\n",
|
failf(data, "schannel: failed to send initial handshake data: %d\n",
|
||||||
written);
|
written);
|
||||||
return CURLE_SSL_CONNECT_ERROR;
|
return CURLE_SSL_CONNECT_ERROR;
|
||||||
@ -346,7 +346,7 @@ schannel_connect_step2(struct connectdata *conn, int sockindex)
|
|||||||
/* send handshake token to server */
|
/* send handshake token to server */
|
||||||
written = swrite(conn->sock[sockindex],
|
written = swrite(conn->sock[sockindex],
|
||||||
outbuf[i].pvBuffer, outbuf[i].cbBuffer);
|
outbuf[i].pvBuffer, outbuf[i].cbBuffer);
|
||||||
if(written != outbuf[i].cbBuffer) {
|
if(outbuf[i].cbBuffer != (size_t)written) {
|
||||||
failf(data, "schannel: failed to send next handshake data: %d\n",
|
failf(data, "schannel: failed to send next handshake data: %d\n",
|
||||||
written);
|
written);
|
||||||
return CURLE_SSL_CONNECT_ERROR;
|
return CURLE_SSL_CONNECT_ERROR;
|
||||||
|
Loading…
Reference in New Issue
Block a user