We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fwrite
1 parent 43a36a1 commit f56356aCopy full SHA for f56356a
1 file changed
tests/api.c
@@ -33615,14 +33615,13 @@ int test_wc_LmsKey_reload_cache(void);
33615
static int test_lms_write_key(const byte* priv, word32 privSz, void* context)
33616
{
33617
FILE* f = fopen((const char*)context, "wb");
33618
+ int ret = WC_LMS_RC_SAVED_TO_NV_MEMORY;
33619
if (f == NULL)
33620
return -1;
- if (fwrite(priv, 1, privSz, f) != privSz) {
33621
- fclose(f);
33622
- return -1;
33623
- }
+ if (fwrite(priv, 1, privSz, f) != privSz)
+ ret = -1;
33624
fclose(f);
33625
- return WC_LMS_RC_SAVED_TO_NV_MEMORY;
+ return ret;
33626
}
33627
33628
static int test_lms_read_key(byte* priv, word32 privSz, void* context)
0 commit comments