<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/21947">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gb_proxy_peer: fix NULL pointer dereference in gbproxy_sgsn_alloc()<br><br>Change-Id: I1c592dd6f0da5f167290f38de3b30a1a04c4313d<br>Fixes: CID#215868<br>---<br>M src/gbproxy/gb_proxy_peer.c<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/47/21947/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gbproxy/gb_proxy_peer.c b/src/gbproxy/gb_proxy_peer.c</span><br><span>index 863bcce..8549a58 100644</span><br><span>--- a/src/gbproxy/gb_proxy_peer.c</span><br><span>+++ b/src/gbproxy/gb_proxy_peer.c</span><br><span>@@ -364,7 +364,8 @@</span><br><span> </span><br><span>   sgsn->nse = gbproxy_nse_alloc(cfg, nsei, true);</span><br><span>   if (!sgsn->nse) {</span><br><span style="color: hsl(0, 100%, 40%);">-            LOGPSGSN_CAT(sgsn, DOBJ, LOGL_INFO, "Could not allocate NSE(%05u) for SGSN\n", nsei);</span><br><span style="color: hsl(120, 100%, 40%);">+               LOGP(sgsn, DOBJ, LOGL_ERROR, "Could not allocate NSE(%05u) for SGSN(%s)\n",</span><br><span style="color: hsl(120, 100%, 40%);">+              nsei, sgsn->name);</span><br><span>           goto free_sgsn;</span><br><span>      }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/21947">change 21947</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/c/osmo-sgsn/+/21947"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sgsn </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I1c592dd6f0da5f167290f38de3b30a1a04c4313d </div>
<div style="display:none"> Gerrit-Change-Number: 21947 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>