aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/v42bis/v42bis_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/tests/v42bis/v42bis_test.c')
-rw-r--r--openbsc/tests/v42bis/v42bis_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/tests/v42bis/v42bis_test.c b/openbsc/tests/v42bis/v42bis_test.c
index 4e055148e..7e907858d 100644
--- a/openbsc/tests/v42bis/v42bis_test.c
+++ b/openbsc/tests/v42bis/v42bis_test.c
@@ -318,6 +318,7 @@ static void test_v42bis_tcpip(const void *ctx, int packet_id)
len = strlen(uncompr_packets[packet_id]);
testvec = talloc_zero_size(ctx, len);
len = osmo_hexparse(uncompr_packets[packet_id], testvec, len);
+ OSMO_ASSERT(len > 0);
v42bis(ctx, V42BIS_COMPRESSION_MODE_DYNAMIC, testvec, len);
v42bis(ctx, V42BIS_COMPRESSION_MODE_ALWAYS, testvec, len);
v42bis(ctx, V42BIS_COMPRESSION_MODE_NEVER, testvec, len);