pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/33007 )

Change subject: subscriber: Fix condition to print PTMSI signature
......................................................................

subscriber: Fix condition to print PTMSI signature

Related: Coverity CID#316085
Change-Id: Ie9259141290200544981e815f4a1486584373014
---
M src/host/layer23/src/common/subscriber.c
1 file changed, 11 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  fixeria: Looks good to me, approved




diff --git a/src/host/layer23/src/common/subscriber.c 
b/src/host/layer23/src/common/subscriber.c
index b4213c8..78b1be0 100644
--- a/src/host/layer23/src/common/subscriber.c
+++ b/src/host/layer23/src/common/subscriber.c
@@ -496,7 +496,7 @@
                (subscr->gprs.imsi_attached) ? "attached" : "detached");
        if (subscr->gprs.ptmsi != GSM_RESERVED_TMSI)
                print(priv, "  PTMSI 0x%08x", subscr->tmsi);
-       if (subscr->gprs.ptmsi != GSM_RESERVED_TMSI)
+       if (subscr->gprs.ptmsi_sig != GSM_RESERVED_TMSI)
                print(priv, "  PTMSI-sig 0x%06x", subscr->gprs.ptmsi_sig);
        if (subscr->gprs.rai.lac > 0x0000 && subscr->gprs.rai.lac < 0xfffe) {
                struct osmo_plmn_id plmn = {

--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/33007
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ie9259141290200544981e815f4a1486584373014
Gerrit-Change-Number: 33007
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to