Do not assume initialized variable in S1AP packing

This commit is contained in:
Ismael Gomez 2018-04-26 11:48:38 +02:00
parent b237d6063e
commit 462de6607d
1 changed files with 1 additions and 1 deletions

View File

@ -44006,7 +44006,7 @@ LIBLTE_ERROR_ENUM liblte_s1ap_pack_s1ap_pdu(
}
liblte_align_up_zero(ptr, 8);
bit_msg.N_bits += (*ptr - bit_msg.msg);
bit_msg.N_bits = (*ptr - bit_msg.msg);
liblte_pack(&bit_msg, msg);
err = LIBLTE_SUCCESS;