Skip to content

Commit c0bac65

Browse files
committed
session BUGFIX non-atomic var
1 parent 4d8d9d4 commit c0bac65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ nc_server_get_cpblts_version(const struct ly_ctx *ctx, LYS_VERSION version)
11771177
goto unlock_error;
11781178
}
11791179

1180-
wd_also_supported = ATOMIC_LOAD_RELAXED(server_opts.wd_also_supported);
1180+
wd_also_supported = server_opts.wd_also_supported;
11811181
if (wd_also_supported) {
11821182
strcat(str, "&also-supported=");
11831183
if (wd_also_supported & NC_WD_ALL) {

0 commit comments

Comments
 (0)