mirror of https://gerrit.osmocom.org/libosmocore
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:
parent
a37921aed1
commit
7000a25164
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue