X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=genl%2Fctrl.c;h=0bf4dc1ee0ba0f2dbf2ea9c7ca4e6772680306a2;hb=c079e121a73af5eb49e003b13607e8a690331df6;hp=3546129087ece91332146e511bb6d16334775b9d;hpb=bde5baa5476cd8d7d33afc42170dc984f3717e14;p=mirror_iproute2.git diff --git a/genl/ctrl.c b/genl/ctrl.c index 35461290..0bf4dc1e 100644 --- a/genl/ctrl.c +++ b/genl/ctrl.c @@ -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; } @@ -334,7 +334,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; }