# HG changeset patch # User Senko Rasic # Date 1197209412 -3600 # Node ID d9dc997db56ba82cb5feb82ea4de9d30eec1612e # Parent 02b814ccc5350c031db984d16e93c16f1c20b5aa Ensure that SASL features handler is called after all the others, ensuring that the possible StartTLS negotiation occurrs before authentication phase. diff -r 02b814ccc535 -r d9dc997db56b 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; }