From 57497f3b415db66538de5e89bc11f7f5816a39e2 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Thu, 5 Jul 2007 18:26:58 +0000 Subject: [PATCH] Copy OOM handler from parent to child. --- lib/silcutil/silcstack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/silcutil/silcstack.c b/lib/silcutil/silcstack.c index e314d8d0..ab5cd62b 100644 --- a/lib/silcutil/silcstack.c +++ b/lib/silcutil/silcstack.c @@ -191,6 +191,8 @@ SilcStack silc_stack_alloc(SilcUInt32 stack_size, SilcStack parent) stack->parent = parent; stack->stack_size = stack_size; stack->alignment = SILC_STACK_DEFAULT_ALIGN; + stack->oom_handler = parent->oom_handler; + stack->oom_context = parent->oom_context; silc_list_init(stack->stacks, struct SilcStackDataEntryStruct, next); /* Allocate stack frames from the parent */ -- 2.24.0