[asterisk-bugs] [JIRA] (ASTERISK-30379) http: fix NULL pointer dereference while enable_status on TLS-only

Boris P. Korzun (JIRA) noreply at issues.asterisk.org
Wed Dec 28 13:21:06 CST 2022


Boris P. Korzun created ASTERISK-30379:
------------------------------------------

             Summary: http: fix NULL pointer dereference while enable_status on TLS-only
                 Key: ASTERISK-30379
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30379
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Core/HTTP
    Affects Versions: 20.0.1, 19.7.1, 18.15.1, 16.29.1
         Environment: FreeBSD 13/stable
            Reporter: Boris P. Korzun


There's an regression after [http.c: Add ability to create multiple HTTP servers|https://gerrit.asterisk.org/c/asterisk/+/17471].
If native HTTP is disabled ({{enabled=no}}) but HTTPS is enabled ({{tls_enable=yes}}) and status page enabled too ({{enable_status=yes}}), {{http}} is falling while loading. {{global_http_server}} is NULL.

Suggested patch adds a check for HTTP is enabled ({{global_http_server = NULL}}) for output the rows from the status page.




--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list