From 75c5cf4055c9357c24ea5269b520729140184ff8 Mon Sep 17 00:00:00 2001 From: yasuoka Date: Fri, 18 Aug 2023 06:12:27 +0000 Subject: [PATCH] Properly terminate the arguments for execv() with NULL. --- usr.sbin/radiusd/radiusd_bsdauth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/radiusd/radiusd_bsdauth.c b/usr.sbin/radiusd/radiusd_bsdauth.c index 8df5badd634..69907bf9a95 100644 --- a/usr.sbin/radiusd/radiusd_bsdauth.c +++ b/usr.sbin/radiusd/radiusd_bsdauth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radiusd_bsdauth.c,v 1.14 2019/12/14 15:56:20 millert Exp $ */ +/* $OpenBSD: radiusd_bsdauth.c,v 1.15 2023/08/18 06:12:27 yasuoka Exp $ */ /* * Copyright (c) 2015 YASUOKA Masahiko @@ -418,6 +418,7 @@ start_child(char *argv0, int fd) argv[argc++] = argv0; argv[argc++] = "-M"; /* main proc */ + argv[argc++] = NULL; execvp(argv0, argv); fatal("execvp"); } -- 2.20.1