ussd: Fix test for RELEASE COMPLETE
A correcsponding change in libosmocore sets text[0] to '\0'. The test for 0xFF could never have been true.
This commit is contained in:
parent
8c90f47b09
commit
475f513aea
|
@ -51,7 +51,7 @@ int handle_rcv_ussd(struct gsm_subscriber_connection *conn, struct msgb *msg)
|
|||
memset(&req, 0, sizeof(req));
|
||||
gh = msgb_l3(msg);
|
||||
rc = gsm0480_decode_ussd_request(gh, msgb_l3len(msg), &req);
|
||||
if (req.text[0] == 0xFF) /* Release-Complete */
|
||||
if (req.text[0] == '\0') /* Release-Complete */
|
||||
return 0;
|
||||
|
||||
if (!strcmp(USSD_TEXT_OWN_NUMBER, (const char *)req.text)) {
|
||||
|
|
Loading…
Reference in New Issue