Renesas TSIP: skip XMEMCPY on MEMORY_E from tsip_StoreMessage()

This commit is contained in:
Chris Conlon
2026-06-16 13:58:52 -06:00
parent c685293c92
commit 6ebc379f31
@@ -203,10 +203,11 @@ WOLFSSL_LOCAL int tsip_StoreMessage(struct WOLFSSL* ssl, const byte* data,
WOLFSSL_MSG("Capacity over error in tsip_StoreMessage");
ret = MEMORY_E;
}
XMEMCPY(bag->buff + bag->buffIdx, data, sz);
bag->msgTypes[bag->msgIdx++] = *data; /* store message type */
bag->buffIdx += sz;
else {
XMEMCPY(bag->buff + bag->buffIdx, data, sz);
bag->msgTypes[bag->msgIdx++] = *data; /* store message type */
bag->buffIdx += sz;
}
}
WOLFSSL_LEAVE("tsip_StoreMessage", ret);