summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-network/sd-network.c
diff options
context:
space:
mode:
authorSusant Sahani <susant@redhat.com>2015-06-11 14:07:15 +0530
committerSusant Sahani <susant@redhat.com>2015-06-11 14:08:56 +0530
commit3de1c8ceabfc170a38798476ff378e2fbc06dbad (patch)
tree866402498efb606c799df551f2ea974d50a21f0c /src/libsystemd/sd-network/sd-network.c
parentf6a0ea8568c6d2676239da7f8c67ae6b496fffa4 (diff)
sd-network: fix CID 1306198
Diffstat (limited to 'src/libsystemd/sd-network/sd-network.c')
-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;