mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-22 22:03:43 +03:00
audit-util: check correct errno
(cherry picked from commit 190a0953808608b099f9465f9e786e4efe276c26) (cherry picked from commit c90ae08b0a5f2844504a109f71dcd773c16d8260) (cherry picked from commit a3872e60aed7ba05c9da967fac65afa7470ff9c9) (cherry picked from commit 4503a6d9e063c740458351a1f5160394affc1fa9)
This commit is contained in:
parent
3adfd9f411
commit
6dadc4e1fa
@ -101,7 +101,7 @@ static int try_audit_request(int fd) {
|
||||
|
||||
n = recvmsg_safe(fd, &mh, 0);
|
||||
if (n < 0)
|
||||
return -errno;
|
||||
return n;
|
||||
if (n != NLMSG_LENGTH(sizeof(struct nlmsgerr)))
|
||||
return -EIO;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user