forked from wolfSSL/wolfssl
Fix length being passed into GetFormattedTime.
This commit is contained in:
@ -13861,7 +13861,7 @@ int GetAsnTimeString(void* currTime, byte* buf, word32 len)
|
|||||||
|
|
||||||
XMEMSET(uf_time, 0, sizeof(uf_time));
|
XMEMSET(uf_time, 0, sizeof(uf_time));
|
||||||
/* GetFormattedTime returns length with null terminator */
|
/* GetFormattedTime returns length with null terminator */
|
||||||
data_len = GetFormattedTime(currTime, uf_time, len);
|
data_len = GetFormattedTime(currTime, uf_time, (word32)sizeof(uf_time));
|
||||||
if (data_len <= 0) {
|
if (data_len <= 0) {
|
||||||
return ASN_TIME_E;
|
return ASN_TIME_E;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user