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;
assert(server);
assert(server->fd > 0);
assert(server->fd >= 0);
assert(message);
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) {
assert(fd > 0);
assert(fd >= 0);
assert(sd);
assert(sd->fd < 0);
assert(!sd->active);