sd-dhcp6-client: do not implicitly cast to boolean

This commit is contained in:
Yu Watanabe 2021-11-01 22:37:26 +09:00
parent e79b4b8534
commit 0936c189c9

View File

@ -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;
}