* Find the user first
*/
if (!usermod_ctx->dn) {
+ if (unlang_module_yield(request, user_modify_resume, NULL, 0, usermod_ctx) == UNLANG_ACTION_FAIL) {
+ talloc_free(usermod_ctx);
+ RETURN_UNLANG_FAIL;
+ }
+
/* Pushes a frame for user resolution */
if (rlm_ldap_find_user_async(usermod_ctx,
p_result,
RETURN_UNLANG_FAIL;
}
- if (unlang_module_yield(request, user_modify_resume, NULL, 0, usermod_ctx) == UNLANG_ACTION_FAIL) {
- talloc_free(usermod_ctx);
- RETURN_UNLANG_FAIL;
- }
-
return UNLANG_ACTION_PUSHED_CHILD;
}