mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 11:44:38 +02:00
fix invalid check on unsigned type
This commit is contained in:
@@ -23571,8 +23571,10 @@ int wolfSSL_RSA_sign_ex(int type, const unsigned char* m,
|
|||||||
if (flag != 0) {
|
if (flag != 0) {
|
||||||
ret = wc_RsaSSL_Sign(encodedSig, signSz, sigRet, outLen,
|
ret = wc_RsaSSL_Sign(encodedSig, signSz, sigRet, outLen,
|
||||||
(RsaKey*)rsa->internal, rng);
|
(RsaKey*)rsa->internal, rng);
|
||||||
if (ret <= 0)
|
if (ret <= 0) {
|
||||||
WOLFSSL_MSG("Bad Rsa Sign");
|
WOLFSSL_MSG("Bad Rsa Sign");
|
||||||
|
ret = 0;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
*sigLen = (unsigned int)ret;
|
*sigLen = (unsigned int)ret;
|
||||||
ret = SSL_SUCCESS;
|
ret = SSL_SUCCESS;
|
||||||
|
Reference in New Issue
Block a user