MEM(pair_prepend_request(&vp, attr_tls_packet_type) >= 0);
vp->vp_uint32 = enum_tls_packet_type_new_session->vb_uint32;
- if (unlang_subrequest_child_push(child, NULL, child->parent, true, UNLANG_SUB_FRAME) < 0) {
+ if (unlang_subrequest_child_push(NULL, child, child->parent, true, UNLANG_SUB_FRAME) < 0) {
return UNLANG_ACTION_FAIL;
}
if (unlang_function_push(NULL, child, NULL, tls_new_session_result, NULL, 0, UNLANG_SUB_FRAME, NULL) < 0) return UNLANG_ACTION_FAIL;
* Sets up a dispatch frame in the parent
* and a result processing frame in the child.
*/
- if (unlang_subrequest_child_push(child, NULL,
+ if (unlang_subrequest_child_push(NULL, child,
tls_session,
true, UNLANG_SUB_FRAME) < 0) {
return UNLANG_ACTION_FAIL;
frame_repeat(frame, unlang_call_children);
}
- if (virtual_server_push(request, gext->server_cs, UNLANG_SUB_FRAME) < 0) goto error;
+ if (virtual_server_push(NULL, request, gext->server_cs, UNLANG_SUB_FRAME) < 0) goto error;
return UNLANG_ACTION_PUSHED_CHILD;
}
* - -1 on failure.
*/
-int unlang_subrequest_child_push(request_t *child,
- unlang_result_t *p_result, void const *unique_session_ptr, bool free_child, bool top_frame)
+int unlang_subrequest_child_push(unlang_result_t *p_result, request_t *child, void const *unique_session_ptr, bool free_child, bool top_frame)
{
unlang_child_request_t *cr;
unlang_stack_frame_t *frame;
void unlang_subrequest_detach_and_free(request_t **child);
-int unlang_subrequest_child_push(request_t *child,
- unlang_result_t *p_result, void const *unique_session_ptr, bool free_child, bool top_frame);
+int unlang_subrequest_child_push(unlang_result_t *p_result, request_t *child,
+ void const *unique_session_ptr, bool free_child, bool top_frame);
int unlang_subrequest_child_push_and_detach(request_t *child);
* This must be done before pushing frames onto
* the child's stack.
*/
- if (unlang_subrequest_child_push(eap_session->subrequest, &eap_session->submodule_result,
+ if (unlang_subrequest_child_push(&eap_session->submodule_result, eap_session->subrequest,
eap_session,
false, UNLANG_SUB_FRAME) < 0) {
child_fail: