From: Vincent Bernat Date: Thu, 19 May 2016 09:29:43 +0000 (+0200) Subject: BUG/MINOR: fix listening IP address storage for frontends (cont) X-Git-Tag: v1.7-dev4~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e46ff11e9c0d0b9266226ad911362c8a62ee458;p=thirdparty%2Fhaproxy.git BUG/MINOR: fix listening IP address storage for frontends (cont) Commit 6e6158 was incomplete. There was an additional aggregate copy that may trigger a similar case in the future. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index 48e584cf73..9b7646523d 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -298,7 +298,7 @@ int str2listener(char *str, struct proxy *curproxy, struct bind_conf *bind_conf, l->bind_conf = bind_conf; l->fd = fd; - l->addr = ss; + memcpy(&l->addr, &ss, sizeof(ss)); l->xprt = &raw_sock; l->state = LI_INIT;