]> git.ipfire.org Git - thirdparty/asterisk.git/commit
http.c: Fix NULL pointer dereference bug
authorBoris P. Korzun <drtr0jan@yandex.ru>
Wed, 28 Dec 2022 19:33:42 +0000 (22:33 +0300)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 5 Jan 2023 12:17:13 +0000 (06:17 -0600)
commit8c9b37a5394cdca2d5ae188259947707d5e65428
tree5475c795d8a8a22c299d0998ac3002d99f924e7b
parentc209064d662421aa9473ee412c6aa359751146d7
http.c: Fix NULL pointer dereference bug

If native HTTP is disabled but HTTPS is enabled and status page enabled
too, Core/HTTP crashes while loading. 'global_http_server' references
to NULL, but the status page tries to dereference it.

The patch adds a check for HTTP is enabled.

ASTERISK-30379 #close

Change-Id: I11b02fc920b72aaed9c809fc43210523ccfdc249
main/http.c