vlr.c: fix condition to check MSISDN presence

msisdn_enc is a buffer, its address is always != 0

Change-Id: Ib2294d2cd339c36df599d7d134f979a572ac308a
This commit is contained in:
Neels Hofmeyr 2019-11-13 07:05:11 +01:00
parent 27c8b033fc
commit 02dd265d68
1 changed files with 1 additions and 1 deletions

View File

@ -784,7 +784,7 @@ static void vlr_subscr_gsup_insert_data(struct vlr_subscr *vsub,
unsigned idx;
int rc;
if (gsup_msg->msisdn_enc) {//FIXME: vlr_subscr_set_msisdn()?
if (gsup_msg->msisdn_enc_len) {//FIXME: vlr_subscr_set_msisdn()?
gsm48_decode_bcd_number2(vsub->msisdn, sizeof(vsub->msisdn),
gsup_msg->msisdn_enc_len, 0);