X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_message_api.c;h=6641f5df897d1fd5ec654879a24ca958705835d3;hb=3706c9ddb362d54d409506010952a0129e78e5e9;hp=2a7a1ebbe6bc7ce7ab83672c52ac1bce2d98554e;hpb=eabc03de1d511ce49640322859c6175f27a413e5;p=m6w6%2Fext-http diff --git a/http_message_api.c b/http_message_api.c index 2a7a1eb..6641f5d 100644 --- a/http_message_api.c +++ b/http_message_api.c @@ -288,7 +288,7 @@ PHP_HTTP_API http_message *_http_message_parse_ex(http_message *msg, const char #endif /* HTTP_HAVE_ZLIB || HAVE_ZLIB */ /* check for following messages */ - if (continue_at) { + if (continue_at && (continue_at < (message + message_length))) { while (isspace(*continue_at)) ++continue_at; if (continue_at < (message + message_length)) { http_message *next = NULL, *most = NULL;