Small patch to handler_fire_stanza() from Matthew Wild <mwild1@gmail.com>. prev was not advanced along with item.
This commit is contained in:
@@ -89,12 +89,14 @@ void handler_fire_stanza(xmpp_conn_t * const conn,
|
|||||||
while (item) {
|
while (item) {
|
||||||
/* skip newly added handlers */
|
/* skip newly added handlers */
|
||||||
if (!item->enabled) {
|
if (!item->enabled) {
|
||||||
|
prev = item;
|
||||||
item = item->next;
|
item = item->next;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* don't call user handlers until authentication succeeds */
|
/* don't call user handlers until authentication succeeds */
|
||||||
if (item->user_handler && !conn->authenticated) {
|
if (item->user_handler && !conn->authenticated) {
|
||||||
|
prev = item;
|
||||||
item = item->next;
|
item = item->next;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user