From: Thadeu Lima de Souza Cascardo Date: Mon, 22 Jun 2009 15:21:14 +0000 (-0300) Subject: Stop leaking connections to the server when denying access. X-Git-Tag: v0.1.3~84 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Frnetproxy.git;a=commitdiff_plain;h=c5c2efa51c3fdde36f00a8eae7a02d87087dc238 Stop leaking connections to the server when denying access. --- 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; } }