diff options
author | Daniel Mack <github@zonque.org> | 2015-08-17 10:10:04 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-08-17 10:10:04 +0200 |
commit | e503467fa021a46b244cf4c012a4485167cca4d0 (patch) | |
tree | a681cefaa50a1a00e40be257b13c2fa6ac6b63e1 /src/libsystemd/sd-netlink/sd-netlink.c | |
parent | 4fe66a7155a183308d5e323d303f494d7b135b87 (diff) | |
parent | 8ac43fee1a2890d62edfe29282f66780bc1b634f (diff) |
Merge pull request #953 from poettering/ebadf
tree-wide: generate EBADF when we get invalid fds
Diffstat (limited to 'src/libsystemd/sd-netlink/sd-netlink.c')
-rw-r--r-- | src/libsystemd/sd-netlink/sd-netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-netlink/sd-netlink.c b/src/libsystemd/sd-netlink/sd-netlink.c index c413b1c266..d248869c8d 100644 --- a/src/libsystemd/sd-netlink/sd-netlink.c +++ b/src/libsystemd/sd-netlink/sd-netlink.c @@ -106,7 +106,7 @@ int sd_netlink_open_fd(sd_netlink **ret, int fd) { int r; assert_return(ret, -EINVAL); - assert_return(fd >= 0, -EINVAL); + assert_return(fd >= 0, -EBADF); r = sd_netlink_new(&rtnl); if (r < 0) |