]> 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:34:13 +0000 (08:34 -0600)
commit5a22521c50e6c681a5f4b1f014090d335a4382ed
treeaa26aaa77cc4c8b1e6d10caadfa857f129f7b829
parent272dfcca406a06e93709fab2d6277073da8483d6
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