commit | f0d4a2213a27c049df0c579aff0f699273fc7686 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Sun Aug 17 18:42:13 2014 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Mon Aug 18 14:54:47 2014 +0200 |
tree | a8bd03b2f67337006916ec52bb9342e8440e9fb7 | |
parent | 205e90314d28120ec6da4d82fc9e893130006d3f [diff] [blame] |
ipa: Set msgb->l1h to the beginning of the IPA header l2h points to the OML/RSL header, so it is only logical that l1h points to the IPA header. Also, this is what osmo-bts/msg_utils.c expects.
diff --git a/src/input/ipa.c b/src/input/ipa.c index 71e1227..056c648 100644 --- a/src/input/ipa.c +++ b/src/input/ipa.c
@@ -64,8 +64,10 @@ int len, ret; int needed; - if (msg == NULL) + if (msg == NULL) { msg = ipa_msg_alloc(0); + msg->l1h = msg->tail; + } if (msg == NULL) { ret = -ENOMEM;