From 86e1de17f35e3e812257edd248fc62eae6f283b7 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sat, 3 Sep 2016 14:50:59 +0100 Subject: [PATCH] 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. --- ircd/s_serv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ircd/s_serv.c b/ircd/s_serv.c index e3fd0064..178622ba 100644 --- a/ircd/s_serv.c +++ b/ircd/s_serv.c @@ -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