mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
sd-dhcp6-client: do not implicitly cast to boolean
This commit is contained in:
parent
e79b4b8534
commit
0936c189c9
@ -991,7 +991,7 @@ static int client_timeout_resend(sd_event_source *s, uint64_t usec, void *userda
|
||||
|
||||
case DHCP6_STATE_SOLICITATION:
|
||||
|
||||
if (client->retransmit_count && client->lease) {
|
||||
if (client->retransmit_count > 0 && client->lease) {
|
||||
client_start(client, DHCP6_STATE_REQUEST);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user