osmux: initialize batch appropriately in osmux_xfrm_input_init
Use talloc_size not talloc. Should fix: 0xb779401a in rb_erase (node=0x200200, root=0xb779c908) at rbtree.c:230 0xb779401a in rb_erase (node=0x200200, root=0xb779c908) at rbtree.c:230 0xb778ee48 in osmo_timer_del (timer=0x94aacd0) at timer.c:110 0xb778ef65 in osmo_timer_add (timer=0x94aacd0) at timer.c:72 0xb778f03c in osmo_timer_schedule (timer=0x94aacd0, seconds=0, microseconds=64000) 0xb77360ff in osmux_xfrm_input (h=0x94a4280, msg=0x94b8a50, ccid=18) at osmux.c:390 Due to uninitialization batch structures.
This commit is contained in:
parent
5e9c67ea20
commit
01537a3678
|
@ -406,7 +406,7 @@ void osmux_xfrm_input_init(struct osmux_in_handle *h)
|
|||
|
||||
LOGP(DLMIB, LOGL_DEBUG, "initialized osmux input converter\n");
|
||||
|
||||
batch = talloc(NULL, struct osmux_batch);
|
||||
batch = talloc_zero(NULL, struct osmux_batch);
|
||||
if (batch == NULL)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue