Skip to content

Commit

Permalink
session BUGFIX non-atomic var
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Jan 24, 2025
1 parent 4d8d9d4 commit c0bac65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ nc_server_get_cpblts_version(const struct ly_ctx *ctx, LYS_VERSION version)
goto unlock_error;
}

wd_also_supported = ATOMIC_LOAD_RELAXED(server_opts.wd_also_supported);
wd_also_supported = server_opts.wd_also_supported;
if (wd_also_supported) {
strcat(str, "&also-supported=");
if (wd_also_supported & NC_WD_ALL) {
Expand Down

0 comments on commit c0bac65

Please sign in to comment.