tests/lapd: fix wrong size passed in test_lapdm_contention_resolution()

We should be passing size of the cm[] array, not size of a pointer!

Change-Id: I0a878570e3a3d4e57ff44a7bc460ddb0a1b08558
Fixes: CID#274662
This commit is contained in:
Vadim Yanitskiy 2023-12-11 21:54:30 +07:00 committed by fixeria
parent a37921aed1
commit 7000a25164
1 changed files with 1 additions and 1 deletions

View File

@ -506,7 +506,7 @@ static void test_lapdm_contention_resolution(void)
cm2 = malloc(sizeof(cm));
memcpy(cm2, cm, sizeof(cm));
cm2[0] += 1;
send_sabm(&bts_to_ms_channel, 0, cm2, sizeof(cm2));
send_sabm(&bts_to_ms_channel, 0, cm2, sizeof(cm));
free(cm2);
rc = dequeue_prim(&bts_to_ms_channel.lapdm_dcch, &pp, "DCCH");
OSMO_ASSERT(rc == -ENODEV);