summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormestre <mestre@openbsd.org>2018-08-05 09:37:05 +0000
committermestre <mestre@openbsd.org>2018-08-05 09:37:05 +0000
commit11806809aad98db88fa08c91c2c8a77fd9263f48 (patch)
treea90e83ca8faff3f61c003c3bb3265a71f532107d
parentRemove cpath pledge(2) promise. We decided that not deleting the unix control (diff)
downloadwireguard-openbsd-11806809aad98db88fa08c91c2c8a77fd9263f48.tar.xz
wireguard-openbsd-11806809aad98db88fa08c91c2c8a77fd9263f48.zip
Since -s argument is no longer checked, during reexec, the argv size then must
be shortened by 1. OK florian@
-rw-r--r--usr.sbin/rad/rad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rad/rad.c b/usr.sbin/rad/rad.c
index 81265d93736..3be3de92e3f 100644
--- a/usr.sbin/rad/rad.c
+++ b/usr.sbin/rad/rad.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rad.c,v 1.14 2018/08/04 09:37:17 florian Exp $ */
+/* $OpenBSD: rad.c,v 1.15 2018/08/05 09:37:05 mestre Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -351,7 +351,7 @@ main_shutdown(void)
static pid_t
start_child(int p, char *argv0, int fd, int debug, int verbose)
{
- char *argv[7];
+ char *argv[6];
int argc = 0;
pid_t pid;