Skip to content

Commit ca6206d

Browse files
authored
Limit the boundary of ocsp payload chars (#39)
Code review: Using actual ocsp response payload size.
1 parent d7df5e0 commit ca6206d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

native/src/sslutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ static OCSP_RESPONSE *ocsp_get_resp(apr_pool_t *mp, apr_socket_t *sock)
940940
}
941941
}
942942

943-
resp = parse_ocsp_resp(buf, buflen);
943+
resp = parse_ocsp_resp(buf, totalread);
944944
apr_pool_destroy(p);
945945
return resp;
946946
}

0 commit comments

Comments
 (0)