]> git.ipfire.org Git - thirdparty/curl.git/commit
curl: exit on config file parser errors
authorDaniel Stenberg <daniel@haxx.se>
Mon, 5 Feb 2024 14:04:31 +0000 (15:04 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 7 Feb 2024 12:45:28 +0000 (13:45 +0100)
commit0f0edc283c340e8ddddc763b48d2f835b2270ab4
treefefe5d967c93edd30d465ffa83d73214b338cf8c
parent1d96828582670dc173a5f755689f8d8ba27fcb2a
curl: exit on config file parser errors

Like when trying to import an environment variable that does not exist.

Also fix a bug for reading env variables when there is a default value
set.

Bug: https://curl.se/mail/archive-2024-02/0008.html
Reported-by: Brett Buddin
Add test 462 to verify.

Closes #12862
src/tool_parsecfg.c
src/var.c
tests/data/Makefile.inc
tests/data/test462 [new file with mode: 0644]