mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +03:00
sd-radv: Allocate space also for DNSSL iov option (#7144)
The iov array needs to hold five entries in addition to the number of prefixes.
This commit is contained in:
parent
dd202fa492
commit
6852c0f6b0
@ -160,8 +160,9 @@ static int radv_send(sd_radv *ra, const struct in6_addr *dst,
|
||||
.nd_opt_mtu_type = ND_OPT_MTU,
|
||||
.nd_opt_mtu_len = 1,
|
||||
};
|
||||
/* Reserve iov space for RA header, linkaddr, MTU, N prefixes, RDNSS */
|
||||
struct iovec iov[4 + ra->n_prefixes];
|
||||
/* Reserve iov space for RA header, linkaddr, MTU, N prefixes, RDNSS
|
||||
and DNSSL */
|
||||
struct iovec iov[5 + ra->n_prefixes];
|
||||
struct msghdr msg = {
|
||||
.msg_name = &dst_addr,
|
||||
.msg_namelen = sizeof(dst_addr),
|
||||
|
Loading…
Reference in New Issue
Block a user