Small patch to handler_fire_stanza() from Matthew Wild <mwild1@gmail.com>. prev was not advanced along with item.

This commit is contained in:
Jack Moffitt
2008-08-26 04:47:36 +00:00
parent 1c0bbb1f5d
commit 6560ef253f

View File

@@ -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;
}