X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=pop.c;h=357a39454221f6af83749a71959f8634218a7069;hb=2f6f433ac65fb6f4208a3ac8519cf53941745cc4;hp=09af8a26dd6aa6d6b3549a8f5b6998a376cc58d4;hpb=c5c2efa51c3fdde36f00a8eae7a02d87087dc238;p=cascardo%2Frnetproxy.git diff --git a/pop.c b/pop.c index 09af8a2..357a394 100644 --- a/pop.c +++ b/pop.c @@ -18,7 +18,6 @@ ** */ -#include #include #include #include "nethook.h" @@ -92,8 +91,8 @@ 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); + hc_conn_close (hook->peer->conn); + hc_conn_close (hook->conn); return; } }