]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move assert to run-time check
authorAlan T. DeKok <aland@freeradius.org>
Thu, 27 Jul 2017 13:08:23 +0000 (09:08 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 27 Jul 2017 13:08:23 +0000 (09:08 -0400)
src/lib/io/worker.c

index 0ddfb9a2263f2bbfd6ef720e15ac3361da9015cf..134f7f0426186bc8c5df7096efc8caab4dcbfd66 100644 (file)
@@ -702,7 +702,11 @@ nak:
         */
        listen->app->process_set(listen->app_instance, request);
 
-       rad_assert(request->async->process != NULL);
+       if (!request->async->process) {
+               fr_log(worker->log, L_DBG, "Protocol failed to set 'process' function");
+               fr_worker_nak(worker, cd, fr_time());
+               return NULL;
+       }
 
        /*
         *      Hoist run-time checks here.