]> granicus.if.org Git - apache/commitdiff
mod_cern_meta: fix broken file reading loop in scan_meta_file().
authorJeff Trawick <trawick@apache.org>
Wed, 9 Aug 2000 20:47:06 +0000 (20:47 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 9 Aug 2000 20:47:06 +0000 (20:47 +0000)
We checked the retcode from apr_fgets() improperly.
Submitted by: Rob Simonson <simo@us.ibm.com>
Reviewed by: Jeff Trawick

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86039 13f79535-47bb-0310-9956-ffa450edef68

modules/metadata/mod_cern_meta.c

index ac719ee85223897141a07832d8b755a13f4c2d08..39af3b6d8eadf99fe0cfd06eb14a58ffbf51ddff 100644 (file)
@@ -248,7 +248,7 @@ static int scan_meta_file(request_rec *r, apr_file_t *f)
     apr_table_t *tmp_headers;
 
     tmp_headers = apr_make_table(r->pool, 5);
-    while (apr_fgets(w, MAX_STRING_LEN - 1, f) != APR_SUCCESS) {
+    while (apr_fgets(w, MAX_STRING_LEN - 1, f) == APR_SUCCESS) {
 
        /* Delete terminal (CR?)LF */