<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/20567">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gprs_ns2: fix SNS_ADD for IPv4<br><br>The remote must be initialized because the osmo_sockaddr_cmp is using a memcmp() and might fail<br>on spare bytes in the struct. The same was already done for IPv6.<br><br>Related: OS#4792<br>Change-Id: Iefeef969bb2b5ae4d5db6a6358293ef9eeda858a<br>---<br>M src/gb/gprs_ns2_sns.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.osmocom.org:29418/libosmocore refs/changes/67/20567/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gb/gprs_ns2_sns.c b/src/gb/gprs_ns2_sns.c</span><br><span>index ec6f31f..fabc134 100644</span><br><span>--- a/src/gb/gprs_ns2_sns.c</span><br><span>+++ b/src/gb/gprs_ns2_sns.c</span><br><span>@@ -230,7 +230,7 @@</span><br><span>     struct gprs_ns2_inst *nsi = nse->nsi;</span><br><span>     struct gprs_ns2_vc *nsvc;</span><br><span>    struct gprs_ns2_vc_bind *bind;</span><br><span style="color: hsl(0, 100%, 40%);">-  struct osmo_sockaddr remote;</span><br><span style="color: hsl(120, 100%, 40%);">+  struct osmo_sockaddr remote = { };</span><br><span>   /* copy over. Both data structures use network byte order */</span><br><span>         remote.u.sin.sin_family = AF_INET;</span><br><span>   remote.u.sin.sin_addr.s_addr = ip4->ip_addr;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/20567">change 20567</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/libosmocore/+/20567"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Iefeef969bb2b5ae4d5db6a6358293ef9eeda858a </div>
<div style="display:none"> Gerrit-Change-Number: 20567 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>