]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pjsip: Prevent invalid memory access when attempting to contact a non-sip URI
authorWalter Doekes <walter+asterisk@wjd.nu>
Fri, 5 Jun 2020 09:30:29 +0000 (11:30 +0200)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 8 Jun 2020 14:51:13 +0000 (09:51 -0500)
commitcd82d5ab42bffb92c0dd25c5a5b1d2ff27f155ea
tree64c0e479149a16039b7636e67f4bf32d6dc0d64d
parent7a151eae74bcfdb1b3641e729223ce2b9e29c3ea
pjsip: Prevent invalid memory access when attempting to contact a non-sip URI

You cannot cast a pjsip_uri to a pjsip_sip_uri using pjsip_uri_get_uri,
without checking that it's a PJSIP_URI_SCHEME_IS_SIP(S).

ASTERISK-28936

Change-Id: I9f572b3677e4730458e9402719e580f8681afe2a
res/res_pjsip.c