From e20ddcfff5fdb88a5c97400f1e9faf60ff25bc6b Mon Sep 17 00:00:00 2001 From: degroote Date: Fri, 2 May 2008 19:14:03 +0000 Subject: [PATCH] slen must be initialized before the call to accept --- libexec/httpd/daemon-bozo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libexec/httpd/daemon-bozo.c b/libexec/httpd/daemon-bozo.c index c92c46ff5c66..93bf376a0ebc 100644 --- a/libexec/httpd/daemon-bozo.c +++ b/libexec/httpd/daemon-bozo.c @@ -1,4 +1,4 @@ -/* $NetBSD: daemon-bozo.c,v 1.3 2008/03/03 22:15:09 mrg Exp $ */ +/* $NetBSD: daemon-bozo.c,v 1.4 2008/05/02 19:14:03 degroote Exp $ */ /* $eterna: daemon-bozo.c,v 1.9 2008/03/03 03:36:11 mrg Exp $ */ @@ -169,6 +169,7 @@ again: if (fds[i].revents == 0) continue; + slen = sizeof(ss); fd = accept(sock[i], (struct sockaddr *)&ss, &slen); if (fd == -1) { if (errno != EAGAIN)