Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / ircd / list.c
index 275062ee331ff421789aedb69b789f2cf5b4cdcd..af65ddeb5e2e7b4549aca0d315eb3dd405286ba9 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "class.h"
 #include "client.h"
+#include "IPcheck.h"
 #include "ircd.h"
 #include "ircd_alloc.h"
 #include "ircd_reply.h"
@@ -126,8 +127,10 @@ void free_client(struct Client *cptr)
      */
     if (cptr->dns_reply)
       --cptr->dns_reply->ref_count;
-    if (-1 < cptr->fd)
+    if (-1 < cptr->fd) {
+      ip_registry_local_disconnect(cptr);
       close(cptr->fd);
+    }
     DBufClear(&cptr->sendQ);
     DBufClear(&cptr->recvQ);
     if (cptr->listener)