Fixed off-by-one error in OCSP

This commit is contained in:
John Safranek
2013-12-27 16:13:52 -08:00
parent d46c68ba10
commit 896b16a7df

View File

@@ -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");