]> 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:39:05 +0000 (09:39 -0500)
commit3c8a7597b36b604a74b29aba2102d166788af729
tree4e0c6de6bf3c95033557a228999defee74665b54
parenta8042f2a4cc23519d0dae9dd489851ec6ceaa53e
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