mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-07 21:03:14 +02:00
Fix crash on Windows upon bind error (eg: incorrect link::outgoing::bind-ip)
This commit is contained in:
+2
-2
@@ -2307,8 +2307,8 @@ char *sock_strerror(int error)
|
||||
int stop = sizeof(WSAErrors)/sizeof(WSAErrors[0])-1;
|
||||
int mid;
|
||||
|
||||
if (!error) /* strerror compatibility */
|
||||
return NULL;
|
||||
if (!error)
|
||||
return "No error";
|
||||
|
||||
if (error < WSABASEERR) /* Just a regular error code */
|
||||
return strerror(error);
|
||||
|
||||
Reference in New Issue
Block a user