From e858163a0fc7226a7299af65083a6fea0824fa9a Mon Sep 17 00:00:00 2001 From: David Mohr Date: Sat, 16 Mar 2013 15:25:54 -0600 Subject: [PATCH] Revert "client: add a limit to the loop (FS#573)" This reverts commit b8de5f2d43e1c560d3b8cad2eb63b379ae547b9c. Signed-off-by: Uli Schlachter --- objects/client.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/objects/client.h b/objects/client.h index 43c6f3e43..5375418f6 100644 --- a/objects/client.h +++ b/objects/client.h @@ -188,10 +188,8 @@ client_raise(client_t *c) client_t *tc = c; int counter = 0; - /* Find number of transient layers. - * We limit the counter to the stack length: if some case, a buggy - * application might set transient_for as a loop… */ - for(counter = 0; tc->transient_for && counter <= globalconf.stack.len; counter++) + /* Find number of transient layers. */ + for(counter = 0; tc->transient_for; counter++) tc = tc->transient_for; /* Push them in reverse order. */