From 86538c7fab5abf47be9258fce1b564908f0b4b2d Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Wed, 30 Sep 2009 22:35:04 +0200 Subject: input/ipaccess: Fix segv caused by use of uninitialized var This is a regression coming from the recent split of the handle_ts1_read method in two. Signed-off-by: Sylvain Munaut Signed-off-by: Holger Hans Peter Freyther --- openbsc/src/input/ipaccess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/src/input/ipaccess.c') diff --git a/openbsc/src/input/ipaccess.c b/openbsc/src/input/ipaccess.c index 8a228108e..40891ae1b 100644 --- a/openbsc/src/input/ipaccess.c +++ b/openbsc/src/input/ipaccess.c @@ -319,7 +319,7 @@ static int handle_ts1_read(struct bsc_fd *bfd) return error; } - DEBUGP(DMI, "RX %u: %s\n", ts_nr, hexdump(msgb_l2(msg), ret)); + DEBUGP(DMI, "RX %u: %s\n", ts_nr, hexdump(msgb_l2(msg), msgb_l2len(msg))); hh = (struct ipaccess_head *) msg->data; if (hh->proto == IPAC_PROTO_IPACCESS) { -- cgit v1.2.3