summaryrefslogtreecommitdiffstats
path: root/examples/genl-family-get.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/genl-family-get.c')
-rw-r--r--examples/genl-family-get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/genl-family-get.c b/examples/genl-family-get.c
index 674a529..73a7574 100644
--- a/examples/genl-family-get.c
+++ b/examples/genl-family-get.c
@@ -218,7 +218,7 @@ int main(int argc, char *argv[])
}
portid = mnl_socket_get_portid(nl);
- if (mnl_socket_sendto(nl, nlh, mnl_nlmsg_get_len(nlh)) < 0) {
+ if (mnl_socket_sendto(nl, nlh, nlh->nlmsg_len) < 0) {
perror("mnl_socket_send");
exit(EXIT_FAILURE);
}