Revert "client: add a limit to the loop (FS#573)"

This reverts commit b8de5f2d43.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
David Mohr 2013-03-16 15:25:54 -06:00 committed by Uli Schlachter
parent f3573dbb19
commit e858163a0f
1 changed files with 2 additions and 4 deletions

View File

@ -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. */