From 1b5538d13b13b1bc15c686084abb4eaa9deadc3c Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 25 Feb 2020 10:28:21 +0200 Subject: Bugfixes * src/pinger.c (pinger_host_delete_by_name): Set hostlist_updated. (pinger_hostlist_set): Update hostlist->tail. --- src/pinger.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; -- cgit v1.2.1