From 27975f99d349a7aabfa3ecd9ae337ec70be12045 Mon Sep 17 00:00:00 2001 From: francescomani Date: Fri, 26 Apr 2024 14:40:01 +0200 Subject: [PATCH] fix for MSG3 buffer when retransmitting --- openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c b/openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c index 2ef2f427a4..3cdcbf769d 100644 --- a/openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c +++ b/openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c @@ -630,7 +630,7 @@ void nr_get_msg3_payload(NR_UE_MAC_INST_t *mac, uint8_t *buf, int TBS_max) // we already stored MSG3 in the buffer, we can use that if (ra->Msg3_buffer) { - buf = ra->Msg3_buffer; + memcpy(buf, ra->Msg3_buffer, sizeof(uint8_t) * TBS_max); return; }