diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-05 04:19:21 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-05 04:27:40 +0100 |
commit | 20f7d0ecb4d04bd20b132fadad50b3f914ed9fe0 (patch) | |
tree | feaec8cfc30bd514de3aed142289123eddfec294 /tests/gsm23003/gsm23003_test.ok | |
parent | 680acae725b2b8dda2f239ff20073306fdfb3f6e (diff) |
fix osmo_mnc_from_str(): don't try to parse NULL
In osmo_mnc_from_str() do not try to return some values even if the validation
fails; hence don't try to decode a NULL pointer. That whole idea was half-baked
and a can of worms to begin with.
Change-Id: Ibaaa128ac60b941a015a31134eb52aef56bc6e22
Diffstat (limited to 'tests/gsm23003/gsm23003_test.ok')
-rw-r--r-- | tests/gsm23003/gsm23003_test.ok | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/gsm23003/gsm23003_test.ok b/tests/gsm23003/gsm23003_test.ok index 565c38cf..b435f450 100644 --- a/tests/gsm23003/gsm23003_test.ok +++ b/tests/gsm23003/gsm23003_test.ok @@ -51,11 +51,11 @@ 5: "001" rc=0 mnc=1 mnc_3_digits=1 pass 6: "" rc=-22 mnc=0 mnc_3_digits=0 pass 7: " " rc=-22 mnc=0 mnc_3_digits=0 pass - 8: "-1" rc=-22 mnc=65535 mnc_3_digits=0 pass - 9: "1000" rc=-22 mnc=1000 mnc_3_digits=1 pass + 8: "-1" rc=-22 mnc=0 mnc_3_digits=0 pass + 9: "1000" rc=-22 mnc=0 mnc_3_digits=0 pass 10: "0x" rc=-22 mnc=0 mnc_3_digits=0 pass -11: " 23" rc=-22 mnc=23 mnc_3_digits=1 pass -12: "23 " rc=-22 mnc=23 mnc_3_digits=1 pass -13: " 023" rc=-22 mnc=23 mnc_3_digits=1 pass -14: "023 " rc=-22 mnc=23 mnc_3_digits=1 pass -15: "023 " rc=-22 mnc=23 mnc_3_digits=1 pass +11: " 23" rc=-22 mnc=0 mnc_3_digits=0 pass +12: "23 " rc=-22 mnc=0 mnc_3_digits=0 pass +13: " 023" rc=-22 mnc=0 mnc_3_digits=0 pass +14: "023 " rc=-22 mnc=0 mnc_3_digits=0 pass +15: "023 " rc=-22 mnc=0 mnc_3_digits=0 pass |