]> 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:42:45 +0000 (09:42 -0500)
commitb82fd4f236cf0d7c3324d33240013e4d331799cd
treea52345784290edd8cf0ebc4eeaa285492ee6b891
parent73b5e0973819951496b43a7c90f6223c4fe6d3f2
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