]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_verto] fix crash on vhost http server requests without content type 366/head
authorMike Jerris <mike@signalwire.com>
Sat, 15 Feb 2020 18:40:00 +0000 (13:40 -0500)
committerMike Jerris <mike@signalwire.com>
Sat, 15 Feb 2020 18:40:00 +0000 (13:40 -0500)
src/mod/endpoints/mod_verto/mod_verto.c

index efd76ac25c0bb24a73f76b0a3f7cfb3f85838ab1..f8b297fb8eb48190760a4b829009a4e983456f59 100644 (file)
@@ -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;