Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2012 03:16:18 +0900
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        vermaden <vermaden@interia.pl>
Cc:        sunpoet@FreeBSD.org, freebsd-ports@FreeBSD.org
Subject:   Re: sysutils/agedu
Message-ID:  <yge4njnji4t.wl%ume@mahoroba.org>
In-Reply-To: <eksxuywcpbthkizselgv@yftn>
References:  <tajeopniumkarrggqdbm@zeeo> <eksxuywcpbthkizselgv@yftn>

next in thread | previous in thread | raw e-mail | index | archive | help
--Multipart_Sun_Dec_16_03:16:18_2012-1
Content-Type: text/plain; charset=US-ASCII

Hi,

>>>>> On Fri, 14 Dec 2012 13:06:19 +0100
>>>>> vermaden <vermaden@interia.pl> said:

vermaden> Stille the same after last update to 9723:

vermaden> % agedu -w  
vermaden> getaddrinfo: Invalid value for hints

`hints' is not initialized.  It should be fixed with the attached
patch.

Sincerely,


--Multipart_Sun_Dec_16_03:16:18_2012-1
Content-Type: text/x-patch; charset=US-ASCII
Content-Disposition: attachment; filename="patch-httpd.c"
Content-Transfer-Encoding: 7bit

Index: httpd.c
diff -u -p httpd.c.orig httpd.c
--- httpd.c.orig	2012-12-16 02:51:33.000000000 +0900
+++ httpd.c	2012-12-16 03:02:19.765871018 +0900
@@ -566,6 +566,7 @@ static int make_listening_sockets(struct
 
     struct addrinfo hints;
     struct addrinfo *addrs, *ai;
+    memset(&hints, 0, sizeof(hints));
     hints.ai_family = AF_UNSPEC;
     hints.ai_socktype = SOCK_STREAM;
     hints.ai_protocol = 0;

--
Hajimu UMEMOTO
ume@mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.mahoroba.org/~ume/

--Multipart_Sun_Dec_16_03:16:18_2012-1--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?yge4njnji4t.wl%ume>