return NULL;
}
+#ifdef STATIC_ANALYZER
+ if (!unknown->name || !unknown->parent) return NULL;
+#endif
+
da = fr_dict_attr_by_name(NULL, unknown->parent, unknown->name);
if (da) {
if (da->attr == unknown->attr) return da;
return NULL;
}
} else {
-#ifdef STATIC_ANALYZER
- if (!unknown->parent) return NULL;
-#endif
parent = unknown->parent;
}
return n;
}
-#ifdef STATIC_ANALYZER
- if (!unknown->name) return NULL;
-#endif
-
/*
* Add the attribute by both name and number.
*
*/
m->current = &m->state[def->init];
+#ifdef STATIC_ANALYZER
+ if (!m->current || !m->current->def || !m->current->def->process) {
+ talloc_free(m);
+ return NULL;
+ }
+#endif
+
/*
* We don't transition into the "init" state, as there is
* no previous state. We just run the "process"
fr_assert(!m->current->def->exit);
fr_assert(m->current->def->process);
-#ifdef STATIC_ANALYZER
- if (!m->current || !m->current->def || !m->current->def->process) {
- talloc_free(m);
- return NULL;
- }
-#endif
-
next = m->current->def->process(m, uctx);
fr_assert(next >= 0);