GNOME Bugzilla – Bug 712820
sasl: Fix auth when using the PLAIN method
Last modified: 2014-01-23 12:02:05 UTC
sasl_client_start() can return SASL_OK, in which case calling sasl_client_step() returns an error. If sasl_client_start() returned SASL_OK and the remote told us auth is complete, we can break out of the stepping loop early. The upstream documentation is not very explicit about what to do when sasl_client_start() returns SASL_OK but this was clarified by http://asg.andrew.cmu.edu/archive/message.php?mailbox=archive.cyrus-sasl&msg=10104 This is based on a spice-gtk patch from Dietmar Maurer: http://lists.freedesktop.org/archives/spice-devel/2013-October/015122.html
Created attachment 260456 [details] [review] sasl: Fix auth when using the PLAIN method
Fixed as commit 9dd4da1609e5619f46b3c1627fc59a68735c4360 Author: Christophe Fergeau <cfergeau@redhat.com> Date: Thu Nov 21 16:07:28 2013 +0100 sasl: Fix auth when using the PLAIN method nb, i used the variant you did for the libvirt code rather than the one in this bug