mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 12:10:40 +00:00
zebra: fix wrong asserts in netlink code
These new asserts were causing zebra to abort when trying to install MPLS labeled routes. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
cfb67a784e
commit
e2a534d557
@ -349,7 +349,7 @@ addattr_l (struct nlmsghdr *n, unsigned int maxlen, int type,
|
||||
if (data)
|
||||
memcpy (RTA_DATA (rta), data, alen);
|
||||
else
|
||||
assert (len == 0);
|
||||
assert (alen == 0);
|
||||
|
||||
n->nlmsg_len = NLMSG_ALIGN (n->nlmsg_len) + RTA_ALIGN (len);
|
||||
|
||||
@ -375,7 +375,7 @@ rta_addattr_l (struct rtattr *rta, unsigned int maxlen, int type,
|
||||
if (data)
|
||||
memcpy (RTA_DATA (subrta), data, alen);
|
||||
else
|
||||
assert (len == 0);
|
||||
assert (alen == 0);
|
||||
|
||||
rta->rta_len = NLMSG_ALIGN (rta->rta_len) + RTA_ALIGN (len);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user