mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Added a ret check
This commit is contained in:
22
tests/api.c
22
tests/api.c
@ -22784,12 +22784,13 @@ static int test_wc_HashSetFlags(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
ret = wc_HashFree(&hash, notSupported[j]);
|
|
||||||
if (ret == BAD_FUNC_ARG) {
|
|
||||||
ret = 0;
|
|
||||||
}
|
}
|
||||||
|
if (ret == 0) {
|
||||||
|
ret = wc_HashFree(&hash, notSupported[j]);
|
||||||
|
if (ret == BAD_FUNC_ARG) {
|
||||||
|
ret = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf(resultFmt, ret == 0 ? passed : failed);
|
printf(resultFmt, ret == 0 ? passed : failed);
|
||||||
@ -22880,12 +22881,13 @@ static int test_wc_HashGetFlags(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
ret = wc_HashFree(&hash, notSupported[j]);
|
|
||||||
if (ret == BAD_FUNC_ARG) {
|
|
||||||
ret = 0;
|
|
||||||
}
|
}
|
||||||
|
if (ret == 0) {
|
||||||
|
ret = wc_HashFree(&hash, notSupported[j]);
|
||||||
|
if (ret == BAD_FUNC_ARG) {
|
||||||
|
ret = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf(resultFmt, ret == 0 ? passed : failed);
|
printf(resultFmt, ret == 0 ? passed : failed);
|
||||||
|
Reference in New Issue
Block a user