diff options
-rw-r--r-- | openbsc/src/ussd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/ussd.c b/openbsc/src/ussd.c index 19b494fb3..c9eac13f0 100644 --- a/openbsc/src/ussd.c +++ b/openbsc/src/ussd.c @@ -47,9 +47,11 @@ int handle_rcv_ussd(struct gsm_subscriber_connection *conn, struct msgb *msg) { int rc; struct ussd_request req; + struct gsm48_hdr *gh; memset(&req, 0, sizeof(req)); - rc = gsm0480_decode_ussd_request(msg, &req); + gh = msgb_l3(msg); + rc = gsm0480_decode_ussd_request(gh, msgb_l3len(msg), &req); if (req.text[0] == 0xFF) /* Release-Complete */ return 0; |