summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2021-03-01 08:05:41 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2021-03-01 08:05:41 +0000
commitcc5beb10aacda839a690b46126d06ee1044cd85f (patch)
treed6820b1a60e5ade0d3e2fa8b334fa7f764a80d86
parentb24570cabe5e0a07525ab6d0c4e037f62fc3cdd7 (diff)
off by one in bounds test
ok florian@
-rw-r--r--usr.sbin/rad/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rad/parse.y b/usr.sbin/rad/parse.y
index fe2e922c958..c7b918f4086 100644
--- a/usr.sbin/rad/parse.y
+++ b/usr.sbin/rad/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.17 2021/01/19 17:38:41 florian Exp $ */
+/* $OpenBSD: parse.y,v 1.18 2021/03/01 08:05:40 jsg Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -377,7 +377,7 @@ searchoptsl : STRING {
err(1, "%s", __func__);
if ((len = strlcpy(ra_dnssl_conf->search, $1,
- sizeof(ra_dnssl_conf->search))) >
+ sizeof(ra_dnssl_conf->search))) >=
sizeof(ra_dnssl_conf->search)) {
yyerror("search string too long");
free($1);