Ensure that SASL features handler is called after all the others, ensuring
authorSenko Rasic <senko.rasic@collabora.co.uk>
Sun, 09 Dec 2007 15:10:12 +0100
changeset 321 d9dc997db56b
parent 320 02b814ccc535
child 322 9d591fb31bc2
Ensure that SASL features handler is called after all the others, ensuring that the possible StartTLS negotiation occurrs before authentication phase.
loudmouth/lm-sasl.c
--- a/loudmouth/lm-sasl.c	Sun Dec 09 15:02:02 2007 +0100
+++ b/loudmouth/lm-sasl.c	Sun Dec 09 15:10:12 2007 +0100
@@ -750,7 +750,7 @@
 	lm_connection_register_message_handler (connection,
 						sasl->features_cb,
 						LM_MESSAGE_TYPE_STREAM_FEATURES,
-						LM_HANDLER_PRIORITY_FIRST);
+						LM_HANDLER_PRIORITY_LAST);
 	return sasl;
 }