Assert to catch catastriphic errors
authorAlan T. DeKok <aland@freeradius.org>
Fri, 6 Feb 2015 14:14:52 +0000 (09:14 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 6 Feb 2015 14:14:52 +0000 (09:14 -0500)
src/main/modcall.c

index c40d387..5c5e377 100644 (file)
@@ -444,6 +444,8 @@ 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.