<p>George Joseph <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13706">View Change</a></p><div style="white-space:pre-wrap">Approvals:
George Joseph: Looks good to me, approved; Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_pubsub: Increment persistence data ref when recreating.<br><br>Each subscription needs to have a reference to the persisted data<br>for it, as well as the main JSON contained within the tree. When<br>recreating a subscription this did not occur and they both shared<br>the same reference.<br><br>ASTERISK-28714<br><br>Change-Id: I706abd49ea182ea367a4ac3feca2706460ae9f4a<br>---<br>M res/res_pjsip_pubsub.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c</span><br><span>index 32e0adf..bfa3dc9 100644</span><br><span>--- a/res/res_pjsip_pubsub.c</span><br><span>+++ b/res/res_pjsip_pubsub.c</span><br><span>@@ -1264,7 +1264,7 @@</span><br><span> */</span><br><span> </span><br><span> if (tree->persistence && tree->persistence->generator_data) {</span><br><span style="color: hsl(0, 100%, 40%);">- sub->persistence_data = ast_json_object_get(tree->persistence->generator_data, resource);</span><br><span style="color: hsl(120, 100%, 40%);">+ sub->persistence_data = ast_json_ref(ast_json_object_get(tree->persistence->generator_data, resource));</span><br><span> }</span><br><span> </span><br><span> sub->handler = handler;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/13706">change 13706</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/13706"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 17 </div>
<div style="display:none"> Gerrit-Change-Id: I706abd49ea182ea367a4ac3feca2706460ae9f4a </div>
<div style="display:none"> Gerrit-Change-Number: 13706 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>