From: Pekka Riikonen Date: Thu, 5 Jul 2007 18:26:58 +0000 (+0000) Subject: Copy OOM handler from parent to child. X-Git-Tag: 1.2.beta1~213 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=57497f3b415db66538de5e89bc11f7f5816a39e2;p=crypto.git Copy OOM handler from parent to child. --- 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 */