Skip to content

Commit

Permalink
- fast-reload, fix check config option compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcawijngaards committed Jun 27, 2024
1 parent d355c6b commit 1364d2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -4080,7 +4080,7 @@ fr_check_tag_defines(struct fast_reload_thread* fr, struct config_file* newcfg)
static void
fr_check_changed_cfg(int cmp, const char* desc, char* str, size_t len)
{
if(!cmp) {
if(cmp) {
size_t slen = strlen(str);
size_t desclen = strlen(desc);
if(slen == 0) {
Expand All @@ -4101,7 +4101,7 @@ fr_check_changed_cfg_str(char* cmp1, char* cmp2, const char* desc, char* str,
if((!cmp1 && cmp2) ||
(cmp1 && !cmp2) ||
(cmp1 && cmp2 && strcmp(cmp1, cmp2) != 0)) {
fr_check_changed_cfg(0, desc, str, len);
fr_check_changed_cfg(1, desc, str, len);
}
}

Expand Down

0 comments on commit 1364d2b

Please sign in to comment.