mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-27 19:50:51 +00:00
Netcode: handle NULL in addrinfo lookup
This commit is contained in:
parent
0ed9665a79
commit
7285f9ff1d
1 changed files with 1 additions and 1 deletions
|
@ -1310,7 +1310,7 @@ void I_ShutdownTcpDriver(void)
|
|||
static SINT8 SOCK_NetMakeNodewPort(const char *address, const char *port)
|
||||
{
|
||||
SINT8 newnode = -1;
|
||||
struct my_addrinfo *ai, *runp, hints;
|
||||
struct my_addrinfo *ai = NULL, *runp, hints;
|
||||
int gaie;
|
||||
|
||||
if (!port || !port[0])
|
||||
|
|
Loading…
Reference in a new issue