Merge pull request #10705 from cconlon/tsipMemFix

Renesas TSIP: skip XMEMCPY on MEMORY_E from tsip_StoreMessage()
This commit is contained in:
JacobBarthelmeh
2026-06-16 16:14:54 -06:00
committed by GitHub
@@ -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);