1
0
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:
Bram Matthys
2016-04-04 13:23:15 +02:00
parent 1474e5d7e2
commit 820344f49f
+2 -2
View File
@@ -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);