]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
In debug builds, call assertion on panic
authorAlan T. DeKok <aland@freeradius.org>
Wed, 4 Sep 2013 17:35:57 +0000 (13:35 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 4 Sep 2013 17:35:57 +0000 (13:35 -0400)
src/main/process.c

index db7b236f178ddb093281f4609ecfe41f697efd2b..2dab8353c883bfa88aa173cf277b855f9b5afdfa 100644 (file)
@@ -253,6 +253,9 @@ static void NEVER_RETURNS _rad_panic(char const *file, unsigned int line,
                                    char const *msg)
 {
        ERROR("[%s:%d] %s", file, line, msg);
+#ifndef NDEBUG
+       rad_assert(0 == 1);
+#endif
        _exit(1);
 }