summaryrefslogtreecommitdiff
path: root/lib/genl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/genl.c')
-rw-r--r--lib/genl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/genl.c b/lib/genl.c
index 60f359c..9dc3f09 100644
--- a/lib/genl.c
+++ b/lib/genl.c
@@ -158,7 +158,7 @@ int nl_get_multicast_groups(struct nl_handle *handle,
nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, family_handler, &arg);
while (ret > 0)
- nl_recvmsgs(handle, cb);
+ ret = nl_recvmsgs(handle, cb);
nla_put_failure:
out:
nl_cb_put(cb);