]> granicus.if.org Git - pdns/commitdiff
realign ucontext stack after #6719
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Sat, 8 Sep 2018 16:31:58 +0000 (18:31 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Sat, 8 Sep 2018 16:31:58 +0000 (18:31 +0200)
pdns/mtasker_ucontext.cc

index d7663e340ba967aecd4f0ea97e9472323b0b5539..2cecc97f4a18b28f3e3291f1a345d5749a95d98f 100644 (file)
@@ -134,7 +134,7 @@ pdns_makecontext
     }
     mcp->uc_link = next;
     mcp->uc_stack.ss_sp = ctx.uc_stack.data();
-    mcp->uc_stack.ss_size = ctx.uc_stack.size();
+    mcp->uc_stack.ss_size = ctx.uc_stack.size()-1;
     mcp->uc_stack.ss_flags = 0;
 
     auto ctxarg = splitPointer (&ctx);