aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/input
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2009-09-30 22:35:04 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2009-10-01 03:53:31 +0200
commit86538c7fab5abf47be9258fce1b564908f0b4b2d (patch)
treef8adb9d49c5c4ee65d4c72e9a6bcd35136329342 /openbsc/src/input
parent1b7b39d557960d80e9efa650622ff1f143a7f80e (diff)
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 <tnt@246tNt.com> Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
Diffstat (limited to 'openbsc/src/input')
-rw-r--r--openbsc/src/input/ipaccess.c2
1 files changed, 1 insertions, 1 deletions
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) {