← Commit list

80b6cd92af

Daniel Stenberg
Daniel Stenberg
2026-03-17
SUCCESS Duration: 251s

Subject

tool_formparse: propagate my_get_line errors when reading headers

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

src/tool_formparse.c+4 -0
@@ -464,6 +464,10 @@ static int read_field_headers(FILE *fp, struct curl_slist **pheaders)
break;
}
}
+ if(error && !err) {
+ errorf("Failed to read field headers");
+ err = -1;
+ }
curlx_dyn_free(&line);
return err;
}