]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add assert to reassure (or shut up) "make scan" (#4206)
authorJames Jones <jejones3141@gmail.com>
Tue, 24 Aug 2021 13:10:34 +0000 (08:10 -0500)
committerGitHub <noreply@github.com>
Tue, 24 Aug 2021 13:10:34 +0000 (09:10 -0400)
src/lib/util/machine.c

index 25ec2f3a565d4fbfa1e866e371b59dc465e310ee..3e929f29cd1198ed526ca36d39fbb7e079a48ac4 100644 (file)
@@ -229,6 +229,7 @@ fr_machine_t *fr_machine_alloc(TALLOC_CTX *ctx, fr_machine_def_t const *def, voi
         *      another new state, or 0 for "stay in the current
         *      state".
         */
+       fr_assert(m->current->def);
        fr_assert(!m->current->def->enter);
        fr_assert(!m->current->def->exit);