Skip to content

Commit

Permalink
Update util.c
Browse files Browse the repository at this point in the history
  • Loading branch information
wtoorop authored Oct 22, 2024
1 parent 14d0a43 commit 5674228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ int cookie_secret_file_read(nsd_type* nsd) {
}
}
fclose(f);
if(count && nsd->cookie_secrets_source <= COOKIE_SECRETS_FROM_FILE) {
if(count && nsd->cookie_secrets_source != COOKIE_SECRETS_FROM_FILE) {
nsd->cookie_count = count;
memcpy(nsd->cookie_secrets, cookie_secrets, sizeof(cookie_secrets));
nsd->cookie_secrets_source = COOKIE_SECRETS_FROM_FILE;
Expand Down

0 comments on commit 5674228

Please sign in to comment.