mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 12:00:51 +02:00
Renesas TSIP: skip XMEMCPY on MEMORY_E from tsip_StoreMessage()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user