]> 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>
Tue, 3 Jan 2023 15:55:42 +0000 (09:55 -0600)
commitedc90c96ac80c99716e61cbb5ac460a30b0484e8
tree0442c1efbc8131517e4f62e00435730f466f997a
parent3d9b9a2b166203c171360dfbd8ef9ae3e258cba2
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