Properly clean up SASL context on disconnect, allowing connection object reuse.
authorSenko Rasic <senko.rasic@collabora.co.uk>
Sun, 09 Dec 2007 16:59:41 +0100
changeset 324 4b06b1173262
parent 323 64ea88f05696
child 325 6e561a2cc542
Properly clean up SASL context on disconnect, allowing connection object reuse.
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 {