summaryrefslogtreecommitdiff
path: root/res/res_pjsip_pubsub.c
diff options
context:
space:
mode:
authorAlexei Gradinari <alex2grad@gmail.com>2016-07-21 11:28:36 -0400
committerAlexei Gradinari <alex2grad@gmail.com>2016-07-21 11:29:15 -0400
commit81ea024d939530b76abca07b37fda0b502d0786a (patch)
treed75000d2c22021309cc828348d9dcfc9e50be757 /res/res_pjsip_pubsub.c
parent3ca6407dab1d40478d656d3e46b1122ee0995037 (diff)
res_pjsip_pubsub: fixed a bug when pjsip_tx_data_dec_ref is called twice.
This patch removed call of pjsip_tx_data_dec_ref in send_notify if send_request failed. The pjsip_dlg_send_request deletes the message on error by itself. It seems this patch fixes next issues: ASTERISK-26199 ASTERISK-26166 ASTERISK-26174 Change-Id: I8b05917c93d993f95d604c042ace5f1a5500f59a
Diffstat (limited to 'res/res_pjsip_pubsub.c')
-rw-r--r--res/res_pjsip_pubsub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c
index 207fae04c..fe16c613a 100644
--- a/res/res_pjsip_pubsub.c
+++ b/res/res_pjsip_pubsub.c
@@ -2249,7 +2249,7 @@ static int send_notify(struct sip_subscription_tree *sub_tree, unsigned int forc
}
if (sip_subscription_send_request(sub_tree, tdata)) {
- pjsip_tx_data_dec_ref(tdata);
+ /* do not call pjsip_tx_data_dec_ref(tdata). The pjsip_dlg_send_request deletes the message on error */
return -1;
}