aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2015-05-02 22:21:25 +0200
committerMarc Hoersken <info@marc-hoersken.de>2015-05-02 22:21:25 +0200
commit3c104448d6c0b4b8d35263c5ec77e8386393fdff (patch)
tree72ff2a49d7c42977b87770bad046f5313add8a71 /lib
parentae8387b91c03b3efe91383bf1ba76a8890d46a28 (diff)
schannel.c: Small changes
Diffstat (limited to 'lib')
-rw-r--r--lib/vtls/schannel.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index 3301e35ec..b02e42ecc 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -883,12 +883,12 @@ schannel_recv(struct connectdata *conn, int sockindex,
connssl->encdata_offset),
size, &nread);
/* check for received data */
- if(*err != CURLE_OK)
+ if(*err != CURLE_OK) {
return -1;
- else {
- if(nread > 0)
- /* increase encrypted data buffer offset */
- connssl->encdata_offset += nread;
+ }
+ else if(nread > 0) {
+ /* increase encrypted data buffer offset */
+ connssl->encdata_offset += nread;
}
infof(data, "schannel: encrypted data got %zd\n", nread);
}
@@ -907,7 +907,6 @@ schannel_recv(struct connectdata *conn, int sockindex,
InitSecBuffer(&inbuf[1], SECBUFFER_EMPTY, NULL, 0);
InitSecBuffer(&inbuf[2], SECBUFFER_EMPTY, NULL, 0);
InitSecBuffer(&inbuf[3], SECBUFFER_EMPTY, NULL, 0);
-
InitSecBufferDesc(&inbuf_desc, inbuf, 4);
/* http://msdn.microsoft.com/en-us/library/windows/desktop/aa375348.aspx */