From 929d0e0d4c1cba4ac836829e6b156f84cb4780ab Mon Sep 17 00:00:00 2001 From: Nick Porter Date: Fri, 15 Dec 2023 20:49:10 +0000 Subject: [PATCH] Allocate enough space for trailing NULL --- src/lib/server/cf_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/server/cf_file.c b/src/lib/server/cf_file.c index 9dd759e265260..718eb25f8fdb8 100644 --- a/src/lib/server/cf_file.c +++ b/src/lib/server/cf_file.c @@ -1970,7 +1970,7 @@ static CONF_ITEM *process_catch(cf_stack_t *stack) if (argc) { int i; - css->argv = talloc_array(css, char const *, argc); + css->argv = talloc_array(css, char const *, argc + 1); css->argv_quote = talloc_array(css, fr_token_t, argc); css->argc = argc;