1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 23:43:13 +02:00

Fix possible crash on boot with bind/listen errors.

This commit is contained in:
Bram Matthys
2015-08-31 09:30:59 +02:00
parent 77e092573d
commit f44ad7e608
+2 -2
View File
@@ -340,8 +340,8 @@ int inetport(ConfigItem_listen *listener, char *ip, int port, int ipv6)
}
/* At first, open a new socket */
if (listener->fd != -1)
abort(); /* there was a (reverse check) for this. let's see if this ever happened :) */
if (listener->fd >= 0)
abort(); /* Socket already exists but we are asked to create and listen on one. Bad! */
if (port == 0)
abort(); /* Impossible as well, right? */