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>
This commit is contained in:
parent
926fcecc2d
commit
c4052cf9a8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue