Copy OOM handler from parent to child.
authorPekka Riikonen <priikone@silcnet.org>
Thu, 5 Jul 2007 18:26:58 +0000 (18:26 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Thu, 5 Jul 2007 18:26:58 +0000 (18:26 +0000)
lib/silcutil/silcstack.c

index e314d8d09ad43ee779d4f39d3151b56724ec8433..ab5cd62b510a7f4ff32790b85af83fe7f59eabaf 100644 (file)
@@ -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 */