chiark / gitweb /
sd-network: fix CID 1306198
authorSusant Sahani <susant@redhat.com>
Thu, 11 Jun 2015 08:37:15 +0000 (14:07 +0530)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:01:50 +0000 (10:01 +0100)
src/libelogind/sd-network/sd-network.c

index 207eda1..b63fdf8 100644 (file)
@@ -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;