fixed a bounds check error

pull/1/head
John Safranek 2012-05-18 10:06:06 -07:00
parent b9773673f7
commit a697a60bfd
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ static byte* decode_http_response(byte* httpBuf, int httpBufSz, int* ocspRespSz)
int len = 0;
idx += 15;
if (buf[idx] == ' ') idx++;
while (buf[idx] > '0' && buf[idx] < '9' && idx < httpBufSz) {
while (buf[idx] >= '0' && buf[idx] <= '9' && idx < httpBufSz) {
len = (len * 10) + (buf[idx] - '0');
idx++;
}