1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00

logind: fd 0 is a valid fd

This commit is contained in:
Lennart Poettering 2018-02-26 18:33:51 +01:00
parent d7ba71f4b4
commit 4c9cb12c05
2 changed files with 2 additions and 2 deletions

View File

@ -316,7 +316,7 @@ static int dhcp_server_send_udp(sd_dhcp_server *server, be32_t destination,
int r; int r;
assert(server); assert(server);
assert(server->fd > 0); assert(server->fd >= 0);
assert(message); assert(message);
assert(len > sizeof(DHCPMessage)); assert(len > sizeof(DHCPMessage));

View File

@ -527,7 +527,7 @@ int session_device_save(SessionDevice *sd) {
} }
void session_device_attach_fd(SessionDevice *sd, int fd, bool active) { void session_device_attach_fd(SessionDevice *sd, int fd, bool active) {
assert(fd > 0); assert(fd >= 0);
assert(sd); assert(sd);
assert(sd->fd < 0); assert(sd->fd < 0);
assert(!sd->active); assert(!sd->active);