gbproxy/test: Fix IMSI length check (Coverity)
This fixes the IMSI length assertion, which currently uses a greater-or-equal than zero comparison which always yields true. It is replaced by a greater than zero check. Fixes: Coverity CID 1239442 Sponsored-by: On-Waves ehf
This commit is contained in:
parent
51fde08b07
commit
ea71b4880c
|
@ -3331,7 +3331,7 @@ static void test_gbproxy_keep_info()
|
|||
link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
|
||||
OSMO_ASSERT(link_info);
|
||||
OSMO_ASSERT(link_info == link_info2);
|
||||
OSMO_ASSERT(link_info->imsi_len >= 0);
|
||||
OSMO_ASSERT(link_info->imsi_len > 0);
|
||||
OSMO_ASSERT(!link_info->is_deregistered);
|
||||
OSMO_ASSERT(link_info->imsi_acq_pending);
|
||||
|
||||
|
|
Loading…
Reference in New Issue