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:44:19 +00:00
parent 2befeee9e5
commit ade38ae188
5 changed files with 31 additions and 20 deletions

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