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)
commit6daf3f04fe51246f2bb7b0e3d369fec7d22d2d70
tree6d3e3c5326e35676febb66e511f9a0e55de27600
parent50c62f7235eacd3b88c59ead983e8be719fb7604
Improve handling invitation read errors.

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.
src/protocol_auth.c