]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_session: Make reschedule_reinvite check for NULL topologies
authorGeorge Joseph <gjoseph@digium.com>
Thu, 18 Mar 2021 16:14:34 +0000 (10:14 -0600)
committerJoshua Colp <jcolp@sangoma.com>
Mon, 22 Mar 2021 14:40:32 +0000 (09:40 -0500)
commitbffff6e2d0312335ffa720f57de22ae7ca0a5de4
treed5a7208375a0ec2921015c7732e3c65a2e01b0ba
parent47e9ce96ea306b22c6442a8b39006844b03fef8d
res_pjsip_session: Make reschedule_reinvite check for NULL topologies

When the check for equal topologies was added to reschedule_reinvite()
it was assumed that both the pending and active media states would
actually have non-NULL topologies.  We since discovered this isn't
the case.

We now only test for equal topologies if both media states have
non-NULL topologies.  The logic had to be rearranged a bit to make
sure that we cloned the media states if their topologies were
non-NULL but weren't equal.

ASTERISK-29215

Change-Id: I61313cca7fc571144338aac826091791b87b6e17
res/res_pjsip_session.c