*/
VALUE_PAIR *_fr_cursor_init(vp_cursor_t *cursor, VALUE_PAIR const * const *node)
{
- memset(cursor, 0, sizeof(*cursor));
-
if (!node || !cursor) {
return NULL;
}
+ memset(cursor, 0, sizeof(*cursor));
+
/*
* Useful check to see if uninitialised memory is pointed
* to by node
char const *caller = request->module;
+ rad_assert(module != NULL);
+
RDEBUG2("Calling %s to process EAP data", module->type->name);
request->module = module->type->name;
- rad_assert(module != NULL);
-
switch (handler->stage) {
case INITIATE:
if (!module->type->initiate(module->instance, handler)) {