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

Modified Files:
        src/libexec/httpd [netbsd-7]: 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.7 -r1.25.2.8 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.7 src/libexec/httpd/cgi-bozo.c:1.25.2.8
--- src/libexec/httpd/cgi-bozo.c:1.25.2.7	Sun Feb 12 22:07:17 2017
+++ src/libexec/httpd/cgi-bozo.c	Wed Jan  3 20:30:09 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: cgi-bozo.c,v 1.25.2.7 2017/02/12 22:07:17 snj Exp $	*/
+/*	$NetBSD: cgi-bozo.c,v 1.25.2.8 2018/01/03 20:30:09 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