Commit 21d1bea7 authored by William A. Rowe Jr's avatar William A. Rowe Jr
Browse files

  Another huge file check, and one fewer emits


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89833 13f79535-47bb-0310-9956-ffa450edef68
parent b1458f10
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -233,7 +233,12 @@ static char *ssl_expr_eval_func_file(request_rec *r, char *filename)
        return "";
        return "";
    }
    }
    apr_file_info_get(&finfo, APR_FINFO_SIZE, fp);
    apr_file_info_get(&finfo, APR_FINFO_SIZE, fp);
    len = finfo.size;
    if ((finfo.size + 1) != ((apr_size_t)finfo.size + 1)) {
        ssl_expr_error = "Huge file cannot be read";
        apr_file_close(fp);
        return "";
    }
    len = (apr_size_t)finfo.size;
    if (len == 0) {
    if (len == 0) {
        buf = (char *)apr_palloc(r->pool, sizeof(char) * 1);
        buf = (char *)apr_palloc(r->pool, sizeof(char) * 1);
        *buf = NUL;
        *buf = NUL;