Skip to content

Commit

Permalink
Fix dynamic security configuration possibly not being reloaded on Win…
Browse files Browse the repository at this point in the history
…dows only.

Closes #1962. Thanks to martgeier.
  • Loading branch information
ralight committed Dec 20, 2020
1 parent 4a012ae commit c6a6165
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.txt
Expand Up @@ -3,6 +3,8 @@ Broker:
messages. Closes #1968.
- mosquitto_connect_bind_async() and mosquitto_connect_bind_v5() should not
reset the bind address option if called with bind_address == NULL.
- Fix dynamic security configuration possibly not being reloaded on Windows
only. Closes #1962.

Build:
- Fix man pages not being built when using CMake. Closes #1969.
Expand Down
4 changes: 2 additions & 2 deletions plugins/dynamic-security/plugin.c
Expand Up @@ -346,8 +346,8 @@ static int dynsec__config_load(void)
char *json_str;
cJSON *tree;

/* Save to file */
fptr = fopen(config_file, "rt");
/* Load from file */
fptr = fopen(config_file, "rb");
if(fptr == NULL){
return 1;
}
Expand Down

0 comments on commit c6a6165

Please sign in to comment.