]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add assertions to shut up scan
authorAlan T. DeKok <aland@freeradius.org>
Tue, 23 Feb 2021 17:03:15 +0000 (12:03 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 23 Feb 2021 17:29:39 +0000 (12:29 -0500)
for some incredibly frustrating reason, scan and -W errors are
substantially different on CI and on local builds, even for
the same rev of the same compiler.

src/lib/server/virtual_servers.c

index 6b52649544203819a8d24f4c064e10e5807e94a1..145f658e88ccfd3ee2be0983fe8161638fe8638d 100644 (file)
@@ -750,6 +750,8 @@ int virtual_servers_instantiate(void)
                if (virtual_servers[i]->process_module) {
                        fr_process_module_t const *process = (fr_process_module_t const *) virtual_servers[i]->process_module->module->common;
 
+                       fr_assert(dict != NULL);
+
                        if (process->instantiate &&
                            (process->instantiate(virtual_servers[i]->process_module->data,
                                                  virtual_servers[i]->process_module->conf) < 0)) {