From: Ondrej Zajicek (work) Date: Tue, 28 Mar 2017 14:05:40 +0000 (+0200) Subject: Netlink: Fix bug in RTA_PRIORITY handling X-Git-Tag: v2.0.0-pre1~24^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1b8fe93f018fb272c3a423df1ab13d86c159f00;p=thirdparty%2Fbird.git Netlink: Fix bug in RTA_PRIORITY handling --- diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c index bb85a38b5..68d8560cc 100644 --- a/sysdep/linux/netlink.c +++ b/sysdep/linux/netlink.c @@ -1172,7 +1172,7 @@ nl_send_route(struct krt_proto *p, rte *e, struct ea_list *eattrs, int op, int d priority = ea->u.data; if (priority) - nl_add_attr_u32(&r->h, sizeof(r), RTA_PRIORITY, priority); + nl_add_attr_u32(&r->h, rsize, RTA_PRIORITY, priority); /* For route delete, we do not specify remaining route attributes */ if (op == NL_OP_DELETE)