mirror of
https://github.com/systemd/systemd.git
synced 2024-10-31 07:51:21 +03:00
sd-radv: fix implicit conversion to boolean
This commit is contained in:
parent
9661d2e80c
commit
41521417ab
@ -204,7 +204,7 @@ static int radv_send(sd_radv *ra, const struct in6_addr *dst, usec_t lifetime_us
|
||||
iov[msg.msg_iovlen++] = IOVEC_MAKE(&opt_mac, sizeof(opt_mac));
|
||||
}
|
||||
|
||||
if (ra->mtu) {
|
||||
if (ra->mtu > 0) {
|
||||
opt_mtu.nd_opt_mtu_mtu = htobe32(ra->mtu);
|
||||
iov[msg.msg_iovlen++] = IOVEC_MAKE(&opt_mtu, sizeof(opt_mtu));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user