Fix mechanisms parsing
This commit is contained in:
parent
33d34dc5b1
commit
a366c2e2ae
1 changed files with 2 additions and 2 deletions
|
@ -286,8 +286,8 @@
|
|||
OFXMLElement *bind = [elem elementsForName: @"bind"
|
||||
namespace: NS_BIND].firstObject;
|
||||
|
||||
for (OFXMLElement *mech in mechs)
|
||||
[mechanisms addObject: mech.name];
|
||||
for (OFXMLElement *mech in [mechs.firstObject children])
|
||||
[mechanisms addObject: [mech.children.firstObject stringValue]];
|
||||
|
||||
if ([mechanisms containsObject: @"PLAIN"])
|
||||
[self _sendPLAINAuth];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue