Skip to content

Commit 4503a6d

Browse files
YHNdnzjbluca
authored andcommitted
audit-util: check correct errno
(cherry picked from commit 190a095) (cherry picked from commit c90ae08) (cherry picked from commit a3872e6)
1 parent 87cc4d9 commit 4503a6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basic/audit-util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static int try_audit_request(int fd) {
9999

100100
n = recvmsg_safe(fd, &mh, 0);
101101
if (n < 0)
102-
return -errno;
102+
return n;
103103
if (n != NLMSG_LENGTH(sizeof(struct nlmsgerr)))
104104
return -EIO;
105105

0 commit comments

Comments
 (0)