diff --git a/lib/src/asn1/liblte_s1ap.cc b/lib/src/asn1/liblte_s1ap.cc index 0a589e709..ea0b1ec92 100644 --- a/lib/src/asn1/liblte_s1ap.cc +++ b/lib/src/asn1/liblte_s1ap.cc @@ -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;