❦ 19 mai 2016 11:23 +0200, Cyril Bonté <cyril.bo...@free.fr> : >> De: "Vincent Bernat" <ber...@luffy.cx> >> for (; port <= end; port++) { >> l = (struct listener *)calloc(1, sizeof(struct >> listener)); >> @@ -291,7 +291,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; > > This one was not present in the patch for haproxy 1.6/1.7 ! Maybe it > should ?
Yes, I just noticed it too. Sending a patch. -- Make sure special cases are truly special. - The Elements of Programming Style (Kernighan & Plauger)