# HG changeset patch # User Senko Rasic # Date 1197215981 -3600 # Node ID 4b06b1173262051d50ace1e47fe602eb62e64373 # Parent 64ea88f056963f36d267aa6ba9432a7974a36d43 Properly clean up SASL context on disconnect, allowing connection object reuse. diff -r 64ea88f05696 -r 4b06b1173262 loudmouth/lm-connection.c --- a/loudmouth/lm-connection.c Sun Dec 09 16:32:54 2007 +0100 +++ b/loudmouth/lm-connection.c Sun Dec 09 16:59:41 2007 +0100 @@ -510,6 +510,11 @@ if (connection->ssl) { _lm_ssl_close (connection->ssl); } + + if (connection->sasl) { + lm_sasl_free (connection->sasl); + connection->sasl = NULL; + } } typedef struct {