diff options
| author | martin <martin@NetBSD.org> | 2019-03-29 14:46:44 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2019-03-29 14:46:44 +0000 |
| commit | 2ebaa689c6985b6d29bdfee6c2489c7de36f85fe (patch) | |
| tree | 61f2ebdd713ee4517671dbdf975fff24244ddb18 /libexec/httpd | |
| parent | a17bc6481ba3bdbfdd1d5382e0284333d04cf955 (diff) | |
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
Diffstat (limited to 'libexec/httpd')
| -rw-r--r-- | libexec/httpd/cgi-bozo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/httpd/cgi-bozo.c b/libexec/httpd/cgi-bozo.c index c9eea47dfe0..a563816392d 100644 --- a/libexec/httpd/cgi-bozo.c +++ b/libexec/httpd/cgi-bozo.c @@ -1,4 +1,4 @@ -/* $NetBSD: cgi-bozo.c,v 1.47 2019/01/17 07:46:16 mrg Exp $ */ +/* $NetBSD: cgi-bozo.c,v 1.48 2019/03/29 14:46:44 martin Exp $ */ /* $eterna: cgi-bozo.c,v 1.40 2011/11/18 09:21:15 mrg Exp $ */ @@ -493,6 +493,7 @@ bozo_process_cgi(bozo_httpreq_t *request) (clen && *clen ? 1 : 0) + (request->hr_remotehost && *request->hr_remotehost ? 1 : 0) + (request->hr_remoteaddr && *request->hr_remoteaddr ? 1 : 0) + + (cgihandler ? 1 : 0) + bozo_auth_cgi_count(request) + (request->hr_serverport && *request->hr_serverport ? 1 : 0); |
