aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/logger
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/logger')
-rw-r--r--usr.bin/logger/logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/logger/logger.c b/usr.bin/logger/logger.c
index 71cc5fbb7aa0..936bfc98803c 100644
--- a/usr.bin/logger/logger.c
+++ b/usr.bin/logger/logger.c
@@ -298,7 +298,7 @@ socksetup(const char *src, const char *dst, const char *svcname,
error = getaddrinfo(dst, svcname, &hints, &res0);
if (error == EAI_SERVICE) {
warnx("%s/udp: unknown service", svcname);
- error = getaddrinfo(dst, "514", &hints, &res);
+ error = getaddrinfo(dst, "514", &hints, &res0);
}
if (error)
errx(1, "%s: %s", gai_strerror(error), dst);