1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-12 13:18:14 +03:00

sd-network: fix CID 1306198

This commit is contained in:
Susant Sahani 2015-06-11 14:07:15 +05:30
parent f6a0ea8568
commit 3de1c8ceab

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;