ircd: serv_connect: initialise sa_connect/sa_bind to AF_UNSPEC
These are read to check if they're AF_UNSPEC (unset) but they aren't initialised.
This commit is contained in:
parent
1315fd5920
commit
86e1de17f3
1 changed files with 3 additions and 0 deletions
|
@ -1027,6 +1027,9 @@ serv_connect(struct server_conf *server_p, struct Client *by)
|
||||||
if(server_p == NULL)
|
if(server_p == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
SET_SS_FAMILY(&sa_connect, AF_UNSPEC);
|
||||||
|
SET_SS_FAMILY(&sa_bind, AF_UNSPEC);
|
||||||
|
|
||||||
#ifdef RB_IPV6
|
#ifdef RB_IPV6
|
||||||
if(server_p->aftype != AF_UNSPEC
|
if(server_p->aftype != AF_UNSPEC
|
||||||
&& GET_SS_FAMILY(&server_p->connect4) == AF_INET
|
&& GET_SS_FAMILY(&server_p->connect4) == AF_INET
|
||||||
|
|
Loading…
Reference in a new issue