]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Netlink: Fix bug in RTA_PRIORITY handling
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 28 Mar 2017 14:05:40 +0000 (16:05 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 28 Mar 2017 14:05:40 +0000 (16:05 +0200)
sysdep/linux/netlink.c

index bb85a38b516d57915584d2417b8b6e4bc3f41699..68d8560cc4018e1d40c2c4fc6e04f89879e2277a 100644 (file)
@@ -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)