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:
+2
-2
@@ -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? */
|
||||
|
||||
Reference in New Issue
Block a user