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:
Alexander Huemer 2013-10-06 21:59:28 +02:00 committed by Holger Hans Peter Freyther
parent 8c90f47b09
commit 475f513aea
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {