]> 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)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 4 Jan 2023 17:56:21 +0000 (11:56 -0600)
commite85f23e6e51e0e33a94984788b88df7d578f545f
treef5bf0b5ac8cb51bbae9538869494abd19c7565c2
parent811584ded3fb482e8bfff1dc950ee756f80008c1
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