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:
parent
d7ba71f4b4
commit
4c9cb12c05
@ -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));
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user