diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pinger.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pinger.c b/src/pinger.c index 029a63e..54fe4d2 100644 --- a/src/pinger.c +++ b/src/pinger.c @@ -603,6 +603,7 @@ pinger_host_delete_by_name(char const *name) if (strcmp(hp->name, name) == 0) { hostlist_remove(hostlist, hp); hostping_free(hp); + hostlist_updated = 1; rc = 0; break; } @@ -727,6 +728,7 @@ pinger_hostlist_set(struct json_value *obj, char const **err_text, if (tmp->head) tmp->head->prev = conf_hostping_tail; conf_hostping_tail->next = tmp->head; + hostlist->tail = tmp->tail; hostlist->count += tmp->count; while (hp) { HOSTPING *next = hp->next; |