forked from wolfSSL/wolfssl
fix - add missing FreeDecodeCert on success.
This commit is contained in:
@@ -5726,7 +5726,9 @@ static int SetDatesFromCert(Cert* cert, const byte* der, int derSz)
|
|||||||
|
|
||||||
cert->beforeDateSz = decoded.beforeDateLen;
|
cert->beforeDateSz = decoded.beforeDateLen;
|
||||||
cert->afterDateSz = decoded.afterDateLen;
|
cert->afterDateSz = decoded.afterDateLen;
|
||||||
|
|
||||||
|
FreeDecodedCert(&decoded);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user