<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13717">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">src/hlr.c: simplify initial check in subscr_create_on_demand()<br><br>Change-Id: If6b78adc236ef923e0b2e37b4e2407338a4b98b8<br>---<br>M src/hlr.c<br>1 file changed, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/17/13717/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/hlr.c b/src/hlr.c</span><br><span>index 2cd6789..ef93d7f 100644</span><br><span>--- a/src/hlr.c</span><br><span>+++ b/src/hlr.c</span><br><span>@@ -151,7 +151,9 @@</span><br><span> static void subscr_create_on_demand(const char *imsi) {</span><br><span>     int rc;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-     if (!g_hlr->create_subscr_on_demand || db_subscr_exists_by_imsi(g_hlr->dbc, imsi) == 0)</span><br><span style="color: hsl(120, 100%, 40%);">+ if (!g_hlr->create_subscr_on_demand)</span><br><span style="color: hsl(120, 100%, 40%);">+               return;</span><br><span style="color: hsl(120, 100%, 40%);">+       if (db_subscr_exists_by_imsi(g_hlr->dbc, imsi) == 0)</span><br><span>              return;</span><br><span> </span><br><span>  LOGP(DMAIN, LOGL_INFO, "IMSI='%s': Creating subscriber on demand\n", imsi);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13717">change 13717</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/13717"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: If6b78adc236ef923e0b2e37b4e2407338a4b98b8 </div>
<div style="display:none"> Gerrit-Change-Number: 13717 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>