<p>N A has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/19285">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">func_scramble: Fix null pointer dereference.<br><br>Fix segfault due to null pointer dereference<br>inside the audiohook callback.<br><br>ASTERISK-30220 #close<br><br>Change-Id: Ideb80f606974366e89d619d908744230b5a5a259<br>---<br>M funcs/func_scramble.c<br>1 file changed, 15 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/85/19285/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/funcs/func_scramble.c b/funcs/func_scramble.c</span><br><span>index 5fe194c..e055b2d 100644</span><br><span>--- a/funcs/func_scramble.c</span><br><span>+++ b/funcs/func_scramble.c</span><br><span>@@ -125,6 +125,7 @@</span><br><span>        }</span><br><span> </span><br><span>        if (frame->frametype == AST_FRAME_VOICE) { /* only invert voice frequencies */</span><br><span style="color: hsl(120, 100%, 40%);">+             ni = datastore->data;</span><br><span>             /* Based on direction of frame, and confirm it is applicable */</span><br><span>              if (!(direction == AST_AUDIOHOOK_DIRECTION_READ ? ni->rx : ni->tx)) {</span><br><span>                  return 0;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/19285">change 19285</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/+/19285"/><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: Ideb80f606974366e89d619d908744230b5a5a259 </div>
<div style="display:none"> Gerrit-Change-Number: 19285 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>