<p>Neels Hofmeyr has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13745">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vlr subscr get/put: also check against NULL<br><br>Change-Id: I36929a4ba4abb46909181068d1d0af967b1f5a94<br>---<br>M include/osmocom/msc/vlr.h<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/45/13745/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/msc/vlr.h b/include/osmocom/msc/vlr.h</span><br><span>index 92ebda1..ce6a232 100644</span><br><span>--- a/include/osmocom/msc/vlr.h</span><br><span>+++ b/include/osmocom/msc/vlr.h</span><br><span>@@ -399,9 +399,9 @@</span><br><span> #define vlr_subscr_put(VSUB, USE) vlr_subscr_put_src(VSUB, USE, __FILE__, __LINE__)</span><br><span> </span><br><span> #define vlr_subscr_get_src(VSUB, USE, SRCFILE, SRCLINE) \</span><br><span style="color: hsl(0, 100%, 40%);">-       OSMO_ASSERT(_osmo_use_count_get_put(&(VSUB)->use_count, USE, 1, SRCFILE, SRCLINE) == 0)</span><br><span style="color: hsl(120, 100%, 40%);">+        OSMO_ASSERT((VSUB) && _osmo_use_count_get_put(&(VSUB)->use_count, USE, 1, SRCFILE, SRCLINE) == 0)</span><br><span> #define vlr_subscr_put_src(VSUB, USE, SRCFILE, SRCLINE) \</span><br><span style="color: hsl(0, 100%, 40%);">-   OSMO_ASSERT(_osmo_use_count_get_put(&(VSUB)->use_count, USE, -1, SRCFILE, SRCLINE) == 0)</span><br><span style="color: hsl(120, 100%, 40%);">+       OSMO_ASSERT((VSUB) && _osmo_use_count_get_put(&(VSUB)->use_count, USE, -1, SRCFILE, SRCLINE) == 0)</span><br><span> </span><br><span> void vlr_subscr_free(struct vlr_subscr *vsub);</span><br><span> int vlr_subscr_alloc_tmsi(struct vlr_subscr *vsub);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13745">change 13745</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/13745"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I36929a4ba4abb46909181068d1d0af967b1f5a94 </div>
<div style="display:none"> Gerrit-Change-Number: 13745 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>