Module Name:    src
Committed By:   snj
Date:           Wed Jan  3 20:30:06 UTC 2018

Modified Files:
        src/libexec/httpd [netbsd-7-0]: cgi-bozo.c

Log Message:
Pull up following revision(s) (requested by martin in ticket #1533):
        libexec/httpd/cgi-bozo.c: revision 1.39
PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


To generate a diff of this commit:
cvs rdiff -u -r1.25.2.2.2.4 -r1.25.2.2.2.5 src/libexec/httpd/cgi-bozo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/httpd/cgi-bozo.c
diff -u src/libexec/httpd/cgi-bozo.c:1.25.2.2.2.4 src/libexec/httpd/cgi-bozo.c:1.25.2.2.2.5
--- src/libexec/httpd/cgi-bozo.c:1.25.2.2.2.4	Sun Feb 12 21:59:44 2017
+++ src/libexec/httpd/cgi-bozo.c	Wed Jan  3 20:30:06 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: cgi-bozo.c,v 1.25.2.2.2.4 2017/02/12 21:59:44 snj Exp $	*/
+/*	$NetBSD: cgi-bozo.c,v 1.25.2.2.2.5 2018/01/03 20:30:06 snj Exp $	*/
 
 /*	$eterna: cgi-bozo.c,v 1.40 2011/11/18 09:21:15 mrg Exp $	*/
 
@@ -587,6 +587,8 @@ bozo_process_cgi(bozo_httpreq_t *request
 		bozoerr(httpd, 1, "child socketpair failed: %s",
 				strerror(errno));
 
+	*curenvp = 0;
+
 	/*
 	 * We create 2 procs: one to become the CGI, one read from
 	 * the CGI and output to the network, and this parent will

Reply via email to