]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
check for NULL variable
authorAlan T. DeKok <aland@freeradius.org>
Tue, 7 Aug 2018 18:23:14 +0000 (14:23 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 7 Aug 2018 18:23:14 +0000 (14:23 -0400)
src/lib/server/command.c

index e52371f5de8c6314f56b242de1eaf9ac928aa31b..b04860d5451f10c65a239b37d03b8d647281e568 100644 (file)
@@ -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