aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-10-18 09:53:59 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-18 09:54:33 +0200
commitba482438a05560a534e590078ff5b072e0ebdeb8 (patch)
treeff33c5571399629deff94c284e0fcffd8314302f /openbsc
parent4cc21eaa42bd90928d0b5c1d3f52713a17abdff3 (diff)
ussd: Catch up with libosmocore and pass the gsm48_hdr
Conflicts: openbsc/src/ussd.c
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/ussd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/src/ussd.c b/openbsc/src/ussd.c
index 547691965..3c6521178 100644
--- a/openbsc/src/ussd.c
+++ b/openbsc/src/ussd.c
@@ -45,8 +45,11 @@ static int send_own_number(const struct msgb *msg, const struct ussd_request *re
int handle_rcv_ussd(struct msgb *msg)
{
struct ussd_request req;
+ struct gsm48_hdr *gh;
- gsm0480_decode_ussd_request(msg, &req);
+ memset(&req, 0, sizeof(req));
+ gh = msgb_l3(msg);
+ gsm0480_decode_ussd_request(gh, msgb_l3len(msg), &req);
if (req.text[0] == 0xFF) /* Release-Complete */
return 0;