From ba482438a05560a534e590078ff5b072e0ebdeb8 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 18 Oct 2010 09:53:59 +0200 Subject: ussd: Catch up with libosmocore and pass the gsm48_hdr Conflicts: openbsc/src/ussd.c --- openbsc/src/ussd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3