]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_pubsub: Fix assertion when UAS dialog creation fails. 41/1541/1
authorJoshua Colp <jcolp@digium.com>
Thu, 29 Oct 2015 13:28:33 +0000 (10:28 -0300)
committerJoshua Colp <jcolp@digium.com>
Thu, 29 Oct 2015 13:33:08 +0000 (08:33 -0500)
commitb522a5e30fa02f56346a228de946e4404e57468f
tree0adf5860c06920caa301d078fb272566f94e01d1
parenta186c9ee3080dc2d8f3b1af8322130c814aa9608
res_pjsip_pubsub: Fix assertion when UAS dialog creation fails.

When compiled with assertions enabled one will occur when destroying
the subscription tree when UAS dialog creation fails. This is because
the code assumes that a dialog will always exist on a subscription
tree when in reality during this specific scenario it won't.

This change makes it so a dialog is not removed from the subscription
tree if it is not present.

ASTERISK-25505 #close

Change-Id: Id5c182b055aacc5e66c80546c64804ce19218dee
res/res_pjsip_pubsub.c