From: Alan T. DeKok Date: Tue, 7 Aug 2018 18:23:14 +0000 (-0400) Subject: check for NULL variable X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3c043de722d52a574c4e7f76278cc0bb96b8e24;p=thirdparty%2Ffreeradius-server.git check for NULL variable --- diff --git a/src/lib/server/command.c b/src/lib/server/command.c index e52371f5de8..b04860d5451 100644 --- a/src/lib/server/command.c +++ b/src/lib/server/command.c @@ -1384,6 +1384,11 @@ static int fr_command_run_partial(FILE *fp, FILE *fp_err, fr_cmd_info_t *info, b break; } + /* + * Not found, die. + */ + if (!cmd) return 0; + /* * Ignore read-only on intermediate commands. * Some may have been automatically allocated