forked from wolfSSL/wolfssl
Fixed off-by-one error in OCSP
This commit is contained in:
2
src/io.c
2
src/io.c
@@ -691,7 +691,7 @@ static int process_http_response(int sfd, byte** respBuf,
|
|||||||
if (result > 0) {
|
if (result > 0) {
|
||||||
len += result;
|
len += result;
|
||||||
start = (char*)httpBuf;
|
start = (char*)httpBuf;
|
||||||
start[len+1] = 0;
|
start[len] = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
CYASSL_MSG("process_http_response recv http from peer failed");
|
CYASSL_MSG("process_http_response recv http from peer failed");
|
||||||
|
Reference in New Issue
Block a user