summaryrefslogtreecommitdiff
path: root/src/libsystemd
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-06-11 11:52:58 +0200
committerLennart Poettering <lennart@poettering.net>2015-06-11 11:52:58 +0200
commit64b8c0d030263fc37003f8655b53523231ec81d2 (patch)
tree2655aa30e1645a41d8843f1005adff7e9cb8e07c /src/libsystemd
parent814acddde14d2053d715221590298db6531676e4 (diff)
parent3de1c8ceabfc170a38798476ff378e2fbc06dbad (diff)
Merge pull request #158 from ssahani/net
Net
Diffstat (limited to 'src/libsystemd')
-rw-r--r--src/libsystemd/sd-network/sd-network.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsystemd/sd-network/sd-network.c b/src/libsystemd/sd-network/sd-network.c
index 207eda163b..b63fdf8fcb 100644
--- a/src/libsystemd/sd-network/sd-network.c
+++ b/src/libsystemd/sd-network/sd-network.c
@@ -338,10 +338,8 @@ _public_ int sd_network_monitor_new(sd_network_monitor **m, const char *category
good = true;
}
- if (!good) {
- close_nointr(fd);
+ if (!good)
return -EINVAL;
- }
*m = FD_TO_MONITOR(fd);
fd = -1;