From: Mike Jerris Date: Sat, 15 Feb 2020 18:40:00 +0000 (-0500) Subject: [mod_verto] fix crash on vhost http server requests without content type X-Git-Tag: v1.10.3^2~161^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F366%2Fhead;p=thirdparty%2Ffreeswitch.git [mod_verto] fix crash on vhost http server requests without content type --- diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index efd76ac25c..f8b297fb8e 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -1637,7 +1637,7 @@ new_req: goto done; } - if (!strncmp(request.method, "POST", 4) && request.content_length && + if (!strncmp(request.method, "POST", 4) && request.content_length && request.content_type && !strncmp(request.content_type, "application/x-www-form-urlencoded", 33)) { char *buffer = NULL;