]> 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)
committerGeorge Joseph <gjoseph@digium.com>
Fri, 19 Mar 2021 18:11:35 +0000 (12:11 -0600)
commita41edfb46f826eedf62aff86667df6267d4734fd
tree4e7d2b987e23b20b06704eb37283cec088bb68f1
parent871349275857c0d2e14da5c799a43b0d19fe8ad2
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