Improve handling invitation read errors.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 2 Apr 2022 13:39:08 +0000 (15:39 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 2 Apr 2022 13:40:58 +0000 (15:40 +0200)
Fix a file descriptor leak when something goes wrong while reading an
invitation file. Also check that we read it in full before committing.

Found by cppcheck.


No differences found