mirror of https://github.com/PentHertz/srsLTE.git
Do not assume initialized variable in S1AP packing
This commit is contained in:
parent
b237d6063e
commit
462de6607d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue