]> git.meshlink.io Git - meshlink/commit
Fix potential double fclose().
authorGuus Sliepen <guus@meshlink.io>
Thu, 26 Sep 2019 18:50:11 +0000 (20:50 +0200)
committerGuus Sliepen <guus@meshlink.io>
Thu, 26 Sep 2019 18:50:11 +0000 (20:50 +0200)
commitc104f805b70c7651dea81cbe3ffb6e3d1adec25a
treeccc57111dffc9351309c1b659aa35f9458cb5a04
parent6406d4d35d5b5d56e9359f00fe38e25686f93821
Fix potential double fclose().

We were calling fclose() inside config_read_file(), which never called
fopen() itself. It is the caller's responsibility to close the file on
error. Also fix two error cases where the caller forgot to close fclose().
src/conf.c