diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2013-02-19 13:11:48 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2013-02-19 13:17:02 +0100 |
commit | 01537a3678ad53ef623fe9da9dddafc20871e57f (patch) | |
tree | 6dbe11eec43184b788c46bb5e3345112f3367d3c /src | |
parent | 5e9c67ea2050af9316e70d458c194eb4c560ea7b (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/osmux.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |