From 01537a3678ad53ef623fe9da9dddafc20871e57f Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 19 Feb 2013 13:11:48 +0100 Subject: 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. --- src/osmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/osmux.c b/src/osmux.c index c42ec2f..cc8549f 100644 --- a/src/osmux.c +++ b/src/osmux.c @@ -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; -- cgit v1.2.3