From: Alan T. DeKok Date: Thu, 12 Jul 2018 20:10:16 +0000 (-0400) Subject: assign word_p... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95c8dd7b4c3f5fc246993ebebb7862ef3775c0f2;p=thirdparty%2Ffreeradius-server.git assign word_p... --- diff --git a/src/lib/server/command.c b/src/lib/server/command.c index 6ef6bfd97e0..3a3023fe4f1 100644 --- a/src/lib/server/command.c +++ b/src/lib/server/command.c @@ -2059,6 +2059,10 @@ static int expand_syntax(fr_cmd_argv_t *argv, char const *text, int start, char word++; } + if (!*word || !isspace((int) *word)) return count; + + *word_p = word; + continue; } /*