]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_authenticator_digest: Fix SEGV if get_authorization_hdr returns NULL.
authorGeorge Joseph <gjoseph@sangoma.com>
Thu, 28 Aug 2025 12:47:04 +0000 (06:47 -0600)
committerGeorge Joseph <gjoseph@sangoma.com>
Thu, 28 Aug 2025 14:19:43 +0000 (14:19 +0000)
commitc6595e45ad770455c9aa1eea75cf192d57a7d6d2
tree50ed95e5be2f32cc01926439c157288f1bc301f9
parenta6142af2a098e9444007b9c6ab98329bd06765d8
res_pjsip_authenticator_digest: Fix SEGV if get_authorization_hdr returns NULL.

In the highly-unlikely event that get_authorization_hdr() couldn't find an
Authorization header in a request, trying to get the digest algorithm
would cauase a SEGV.  We now check that we have an auth header that matches
the realm before trying to get the algorithm from it.

Resolves: #GHSA-64qc-9x89-rx5j
res/res_pjsip_authenticator_digest.c