Move assertion
authorAlan T. DeKok <aland@freeradius.org>
Fri, 6 Feb 2015 14:43:56 +0000 (09:43 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 6 Feb 2015 14:43:56 +0000 (09:43 -0500)
src/main/modcall.c

index 5c5e377..71f6f42 100644 (file)
@@ -444,14 +444,14 @@ redo:
        priority = -1;
        c = entry->c;
 
-       rad_assert(c->debug_name != NULL); /* if this happens, all bets are off. */
-
        /*
         *      Nothing more to do.  Return the code and priority
         *      which was set by the caller.
         */
        if (!c) goto finish;
 
+       rad_assert(c->debug_name != NULL); /* if this happens, all bets are off. */
+
        /*
         *      We've been asked to stop.  Do so.
         */