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:
Simon Arlott 2016-09-03 14:50:59 +01:00
parent 1315fd5920
commit 86e1de17f3
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View file

@ -1027,6 +1027,9 @@ serv_connect(struct server_conf *server_p, struct Client *by)
if(server_p == NULL)
return 0;
SET_SS_FAMILY(&sa_connect, AF_UNSPEC);
SET_SS_FAMILY(&sa_bind, AF_UNSPEC);
#ifdef RB_IPV6
if(server_p->aftype != AF_UNSPEC
&& GET_SS_FAMILY(&server_p->connect4) == AF_INET