mac_rar_pdu_nr: fix clearing of padding bytes

master
Andre Puschmann 3 years ago
parent 02bd15878e
commit ea48a350a4

@ -253,7 +253,10 @@ int mac_rar_pdu_nr::pack()
}
// fill up with padding, if any
buffer->N_bytes += remaining_len;
if (remaining_len > 0) {
memset(buffer->msg + buffer->N_bytes, 0, remaining_len);
buffer->N_bytes += remaining_len;
}
ret = SRSRAN_SUCCESS;

Loading…
Cancel
Save