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:
Jacob Erlbeck 2014-09-22 09:28:27 +02:00 committed by Holger Hans Peter Freyther
parent 51fde08b07
commit ea71b4880c
1 changed files with 1 additions and 1 deletions

View File

@ -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);