From c5c2efa51c3fdde36f00a8eae7a02d87087dc238 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Mon, 22 Jun 2009 12:21:14 -0300 Subject: [PATCH] Stop leaking connections to the server when denying access. --- pop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pop.c b/pop.c index 1925eb4..09af8a2 100644 --- a/pop.c +++ b/pop.c @@ -93,6 +93,7 @@ pop_read (net_hook_t *hook, gchar *buffer, size_t len) g_message ("Denying access to user %s.", pop->user); pop_destroy (hook); gnet_conn_disconnect (hook->conn); + hook->close (hook); return; } } -- 2.20.1