]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - genl/ctrl.c
Merge branch 'master' into net-next
[mirror_iproute2.git] / genl / ctrl.c
index 87d2334a084c5990328e605f587359786dd82709..b7a8878c8eb7ead7fd7488abc3094a2f9be2f2f0 100644 (file)
@@ -67,7 +67,7 @@ int genl_ctrl_resolve_family(const char *family)
 
        addattr_l(nlh, 128, CTRL_ATTR_FAMILY_NAME, family, strlen(family) + 1);
 
-       if (rtnl_talk(&rth, nlh, 0, 0, nlh) < 0) {
+       if (rtnl_talk(&rth, nlh, nlh, sizeof(req)) < 0) {
                fprintf(stderr, "Error talking to the kernel\n");
                goto errout;
        }
@@ -341,7 +341,7 @@ static int ctrl_list(int cmd, int argc, char **argv)
                        goto ctrl_done;
                }
 
-               if (rtnl_talk(&rth, nlh, 0, 0, nlh) < 0) {
+               if (rtnl_talk(&rth, nlh, nlh, sizeof(req)) < 0) {
                        fprintf(stderr, "Error talking to the kernel\n");
                        goto ctrl_done;
                }