<p>Joshua Colp has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13680">View Change</a></p><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;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/80/13680/1</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/+/13680">change 13680</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/+/13680"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I706abd49ea182ea367a4ac3feca2706460ae9f4a </div>
<div style="display:none"> Gerrit-Change-Number: 13680 </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-MessageType: newchange </div>