mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 9da17f5978a2859f3f05b600f3f64018a28d5e0b
parent 613a1182ff9e8b5ca598e3d233a0e36386559e30
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Thu, 29 Jun 2017 22:18:46 +0200

mthread: fix infinite recursion

This fixes:

References: <5> <4> <6>
Message-ID: <3>

References: <6>
Message-ID: <5>

References: <3> <2>
Message-ID: <1>

Diffstat:
mthread.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/mthread.c b/mthread.c @@ -187,6 +187,10 @@ out: if (parent && parent != c) { struct container *r; + // check we don't introduce a new loop + if (reachable(parent, c) || reachable(c, parent)) + goto out2; + if (c->parent == parent) { // already correct goto out2; } else if (c->parent) {