aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_04_11.c
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2009-12-24 13:27:36 +0100
committerHarald Welte <laforge@netfilter.org>2009-12-24 15:10:01 +0100
commitc4052cf9a8c9c9cf3d376db9712b465019779083 (patch)
tree5975464cf1e553674338cf8b6169a0d0267ea46a /openbsc/src/gsm_04_11.c
parent926fcecc2ddc78aee4305d50972d01906b96756c (diff)
gsm_04_11: In gsm411_send_sms_lchan fix transaction id error handling
We need transaction_id to be a int (as returned by trans_assign_trans_id) to detect the error condition -1. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'openbsc/src/gsm_04_11.c')
-rw-r--r--openbsc/src/gsm_04_11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c
index 4f19e2ce7..d4572ca18 100644
--- a/openbsc/src/gsm_04_11.c
+++ b/openbsc/src/gsm_04_11.c
@@ -1018,7 +1018,7 @@ int gsm411_send_sms_lchan(struct gsm_lchan *lchan, struct gsm_sms *sms)
struct gsm_trans *trans;
u_int8_t *data, *rp_ud_len;
u_int8_t msg_ref = 42;
- u_int8_t transaction_id;
+ int transaction_id;
int rc;
transaction_id = trans_assign_trans_id(lchan->subscr, GSM48_PDISC_SMS, 0);