From 6560ef253f353c7b6377887986761bae97638608 Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Tue, 26 Aug 2008 04:47:36 +0000 Subject: [PATCH] Small patch to handler_fire_stanza() from Matthew Wild . prev was not advanced along with item. --- src/handler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/handler.c b/src/handler.c index 55c7ad4..4a77f9c 100644 --- a/src/handler.c +++ b/src/handler.c @@ -89,12 +89,14 @@ void handler_fire_stanza(xmpp_conn_t * const conn, while (item) { /* skip newly added handlers */ if (!item->enabled) { + prev = item; item = item->next; continue; } /* don't call user handlers until authentication succeeds */ if (item->user_handler && !conn->authenticated) { + prev = item; item = item->next; continue; }