From: yasuoka Date: Fri, 18 Aug 2023 06:12:27 +0000 (+0000) Subject: Properly terminate the arguments for execv() with NULL. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=75c5cf4055c9357c24ea5269b520729140184ff8;p=openbsd Properly terminate the arguments for execv() with NULL. --- 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"); }