aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-02-25 10:28:21 +0200
committerSergey Poznyakoff <gray@gnu.org>2020-02-25 10:28:21 +0200
commit1b5538d13b13b1bc15c686084abb4eaa9deadc3c (patch)
treeb0f18be3f15a47026baab690da8cbba41c0e8c39 /src
parente13c04e4a09b5c5ea34dd65f3a4f9cdaadd47079 (diff)
downloadping903-1b5538d13b13b1bc15c686084abb4eaa9deadc3c.tar.gz
ping903-1b5538d13b13b1bc15c686084abb4eaa9deadc3c.tar.bz2
Bugfixes
* src/pinger.c (pinger_host_delete_by_name): Set hostlist_updated. (pinger_hostlist_set): Update hostlist->tail.
Diffstat (limited to 'src')
-rw-r--r--src/pinger.c2
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;

Return to:

Send suggestions and report system problems to the System administrator.