summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2021-03-01 09:50:40 +0000
committerjsg <jsg@openbsd.org>2021-03-01 09:50:40 +0000
commit6d53ef6485123052140d37c03ab9f2ce0f176970 (patch)
tree1fe336b5e0821f09ef3f7e74904d1a62607b83ca
parentIf an anon is associated with a page, acquire its lock before any modification. (diff)
downloadwireguard-openbsd-6d53ef6485123052140d37c03ab9f2ce0f176970.tar.xz
wireguard-openbsd-6d53ef6485123052140d37c03ab9f2ce0f176970.zip
allocate enough space in start_child() argv for all possible flags
ok claudio@
-rw-r--r--usr.sbin/ldpd/ldpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/ldpd.c b/usr.sbin/ldpd/ldpd.c
index e4ea5fd3f51..58f78264a52 100644
--- a/usr.sbin/ldpd/ldpd.c
+++ b/usr.sbin/ldpd/ldpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldpd.c,v 1.66 2021/01/19 15:23:25 claudio Exp $ */
+/* $OpenBSD: ldpd.c,v 1.67 2021/03/01 09:50:40 jsg Exp $ */
/*
* Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
@@ -323,7 +323,7 @@ static pid_t
start_child(enum ldpd_process p, char *argv0, int fd, int debug, int verbose,
char *sockname)
{
- char *argv[5];
+ char *argv[7];
int argc = 0;
pid_t pid;