summaryrefslogtreecommitdiff
path: root/sbin/unwind
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2019-10-06 09:25:22 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2019-10-06 09:25:22 +0000
commit53c92368315d7ec8929c317c48552fed5f1ad28d (patch)
tree61434de219c2490b73ed63242df838c8308cb4be /sbin/unwind
parent4186c1a571df5650446b62777cb3e61eba2baac4 (diff)
Eek, check overflow with destination size, not source
Diffstat (limited to 'sbin/unwind')
-rw-r--r--sbin/unwind/frontend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/unwind/frontend.c b/sbin/unwind/frontend.c
index bf5742593e5..483edc0d354 100644
--- a/sbin/unwind/frontend.c
+++ b/sbin/unwind/frontend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frontend.c,v 1.25 2019/09/29 13:18:39 florian Exp $ */
+/* $OpenBSD: frontend.c,v 1.26 2019/10/06 09:25:21 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -736,7 +736,7 @@ udp_receive(int fd, short events, void *arg)
}
if (strlcpy(query_imsg->qname, buf, sizeof(query_imsg->qname)) >=
- sizeof(buf)) {
+ sizeof(query_imsg->qname)) {
log_warnx("qname too long");
free(query_imsg);
/* XXX SERVFAIL */