aboutsummaryrefslogtreecommitdiff
path: root/src/pinger.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-03-12 12:33:26 +0200
committerSergey Poznyakoff <gray@gnu.org>2020-03-12 12:33:26 +0200
commit375483f873c30756f7a37322237eb92a957e04e2 (patch)
tree465d79cdef67878aebee9fa6293f928a751c9be5 /src/pinger.c
parente4c1a19c62fd2ef404e9335f73bbcfb7dae819a0 (diff)
downloadping903-375483f873c30756f7a37322237eb92a957e04e2.tar.gz
ping903-375483f873c30756f7a37322237eb92a957e04e2.tar.bz2
Fix possible memory bounds violation
* src/pinger.c (check_host): Fix switch condition.
Diffstat (limited to 'src/pinger.c')
-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
@@ -943,7 +943,7 @@ check_host(char const *name)
}
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) {

Return to:

Send suggestions and report system problems to the System administrator.