sd-network: fix CID 1306198

This commit is contained in:
Susant Sahani
2015-06-11 14:08:56 +05:30
parent f6a0ea8568
commit 3de1c8ceab
+1 -3
View 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;