Subject: StackOverflowException in MucManager.ChangeAffiliation(Affiliation, Jid, Jid, IqCB, object)
MucManager.ChangeAffiliation(Affiliation affiliation, Jid room, Jid user, IqCB cb, object cbArg) is doing nothing but calling itself which results in an endless loop and a StackOverflowException.
Proposed patch:
Proposed patch:
Index: MucManager.cs
===================================================================
--- MucManager.cs (revision 76)
+++ MucManager.cs (working copy)
@@ -1362,7 +1362,7 @@
private void ChangeAffiliation(Affiliation affiliation, Jid room, Jid user, IqCB cb, object cbArg)
{
- ChangeAffiliation(affiliation, room, user, cb, cbArg);
+ ChangeAffiliation(affiliation, room, user, null, null, cb, cbArg);
}
private void ChangeAffiliation(Affiliation affiliation, Jid room, Jid user, string nickname, string reason, IqCB cb, object cbArg)
{
===================================================================
--- MucManager.cs (revision 76)
+++ MucManager.cs (working copy)
@@ -1362,7 +1362,7 @@
private void ChangeAffiliation(Affiliation affiliation, Jid room, Jid user, IqCB cb, object cbArg)
{
- ChangeAffiliation(affiliation, room, user, cb, cbArg);
+ ChangeAffiliation(affiliation, room, user, null, null, cb, cbArg);
}
private void ChangeAffiliation(Affiliation affiliation, Jid room, Jid user, string nickname, string reason, IqCB cb, object cbArg)
{