Skip to content

Commit aa82c54

Browse files
committed
fix NULL drbg deref on non-Intel platforms
1 parent 9627d80 commit aa82c54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,8 @@ int wc_RNG_DRBG_Reseed(WC_RNG* rng, const byte* seed, word32 seedSz)
496496
/* using RDRAND not DRBG, so return success */
497497
return 0;
498498
}
499-
return BAD_FUNC_ARG;
500499
#endif
500+
return BAD_FUNC_ARG;
501501
}
502502

503503
return Hash_DRBG_Reseed((DRBG_internal *)rng->drbg, seed, seedSz);

0 commit comments

Comments
 (0)