Commit 42a8d33b authored by Jim Jagielski's avatar Jim Jagielski
Browse files

Add comment on why the cast is safe and does not result

in lost info.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@686786 13f79535-47bb-0310-9956-ffa450edef68
parent c37d0628
Loading
Loading
Loading
Loading
+1 −0
Changes for modules/proxy/mod_proxy_fcgi.c: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -329,6 +329,7 @@ static apr_status_t send_environment(proxy_conn_rec *conn, request_rec *r,

        envlen += vallen;

	/* The cast of bodylen is safe since FCGI_MAX_ENV_SIZE is for sure an int */
        if (envlen > FCGI_MAX_ENV_SIZE) {
            ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
                          "proxy: FCGI: truncating environment to %d bytes and %d elements",