Skip to content

Commit

Permalink
change condition
Browse files Browse the repository at this point in the history
  • Loading branch information
smittals2 committed Feb 19, 2025
1 parent aee3147 commit f83eb44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/fipsmodule/rand/snapsafe_detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static void do_aws_snapsafe_init(void) {

*snapsafety_state_bss_get() = SNAPSAFETY_STATE_FAILED_INITIALISE;
int fd_sgc = open(CRYPTO_get_sysgenid_path(), O_RDONLY);
if (fd_sgc != 0) {
if (fd_sgc <= 0) {
return;
}

Expand Down

0 comments on commit f83eb44

Please sign in to comment.