[core] fix build issue without ipv6 support

This patch fixes the build issue introduced with when code has been
shared in commit a448886485.

	http-header-glue.c: In function 'http_cgi_headers':
	http-header-glue.c:1555:39: error: 'b2' undeclared (first use in this function)
	http-header-glue.c:1555:39: note: each undeclared identifier is reported only once for each function it appears in

github: closes #79
personal/stbuehler/mod-csrf
Gaël PORTAY 2017-04-25 12:53:28 -04:00 committed by Glenn Strauss
parent 40f72a41b9
commit 589faeef63
1 changed files with 2 additions and 0 deletions

View File

@ -1382,6 +1382,8 @@ int http_cgi_headers (server *srv, connection *con, http_cgi_opts *opts, http_cg
char buf[LI_ITOSTRING_LENGTH];
#ifdef HAVE_IPV6
char b2[INET6_ADDRSTRLEN + 1];
#else
char b2[INET_ADDRSTRLEN + 1];
#endif
sock_addr *addr;
sock_addr addrbuf;