diff options
author | Harald Welte <laforge@gnumonks.org> | 2014-08-17 18:42:13 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2014-08-18 14:54:47 +0200 |
commit | f0d4a2213a27c049df0c579aff0f699273fc7686 (patch) | |
tree | a8bd03b2f67337006916ec52bb9342e8440e9fb7 /src/input | |
parent | 205e90314d28120ec6da4d82fc9e893130006d3f (diff) |
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.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/ipa.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 ipa_msg_recv_buffered(int fd, struct msgb **rmsg, struct msgb **tmp_msg) 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; |