From 920e260e8922807b8ffc96bd7ed61bb94a3e02da Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sun, 12 Jul 2015 22:06:57 +0200 Subject: [PATCH] crash on invalid fd close if in DEBUGMODE --- src/fdlist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fdlist.c b/src/fdlist.c index f62a69574..84ef828fd 100644 --- a/src/fdlist.c +++ b/src/fdlist.c @@ -110,6 +110,9 @@ int fd_unmap(int fd) fd); ircd_log(LOG_ERROR, "[BUG] trying to close fd #%d in fd table, but this FD isn't reported open", fd); +#ifdef DEBUGMODE + abort(); +#endif return 0; }