diff options
author | Alexander Huemer <alexander.huemer@xx.vu> | 2013-10-06 21:55:09 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-15 11:50:34 +0200 |
commit | 16ae51eb19eedf5a1a636bdcb93142c4ad12be38 (patch) | |
tree | 4afe177ea79c4b04ab42065ff01daded94d9d4da | |
parent | 5e6d679df39e5e20b55ef24754a4e6310c9bcad2 (diff) |
ussd: Fix text of RELEASE COMPLETE
Before the assigned value (0xFF) was truncated, reg->text[0] is of
type char. A corresponding test for the same value in openbsc could
only fail.
-rw-r--r-- | src/gsm/gsm0480.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsm/gsm0480.c b/src/gsm/gsm0480.c index 92a62dcf..dbacefc4 100644 --- a/src/gsm/gsm0480.c +++ b/src/gsm/gsm0480.c @@ -234,7 +234,7 @@ static int parse_ussd(const struct gsm48_hdr *hdr, uint16_t len, struct ussd_req case GSM0480_MTYPE_RELEASE_COMPLETE: LOGP(0, LOGL_DEBUG, "USS Release Complete\n"); /* could also parse out the optional Cause/Facility data */ - req->text[0] = 0xFF; + req->text[0] = '\0'; break; case GSM0480_MTYPE_REGISTER: case GSM0480_MTYPE_FACILITY: |