aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pinger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pinger.c b/src/pinger.c
index 53fedfa..370d5d1 100644
--- a/src/pinger.c
+++ b/src/pinger.c
@@ -940,13 +940,13 @@ check_host(char const *name)
FOR_EACH_HOSTPING(hp) {
if (strcmp(hp->name, name) == 0)
return 1;
}
found = 0;
for (uent = update_head; uent; uent = uent->next) {
- switch (update_head->type) {
+ switch (uent->type) {
case UPDATE_APPEND:
case UPDATE_REPLACE:
for (hp = uent->v.hlist->head; hp; hp = hp->next) {
if (strcmp(hp->name, name) == 0) {
found++;
break;

Return to:

Send suggestions and report system problems to the System administrator.