]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: fix error handling in resolved-dns-stream
authorIwan Timmer <irtimmer@gmail.com>
Thu, 14 Jun 2018 15:00:50 +0000 (17:00 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 14 Jun 2018 18:01:03 +0000 (20:01 +0200)
commitf6c9c5f8ed8dc3fadb0ea284658d5506a3d2cad2
treee132ef21b99a8a9b00471e9a5d6da05f4c06e89a
parent30ce657e5dc3ca038f5703a610dc65189cd750ed
resolved: fix error handling in resolved-dns-stream

During the transition from system functions using errno to our own read and write functions with negative return codes some errors where introduced. This patch correctly convert errno to negative return codes for read and write and fix checks still using errno instead of the return code.

Closes #9283
src/resolve/resolved-dns-stream.c