summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/genl/ctrl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/genl/ctrl.c b/lib/genl/ctrl.c
index 5950394..057a1bf 100644
--- a/lib/genl/ctrl.c
+++ b/lib/genl/ctrl.c
@@ -255,8 +255,8 @@ static struct genl_family *genl_ctrl_probe_by_name(struct nl_sock *sk,
if (!(cb = nl_cb_clone(nl_socket_get_cb(sk))))
goto out_msg_free;
- if (genlmsg_put(msg, NL_AUTO_PORT, NL_AUTO_SEQ, GENL_ID_CTRL,
- 0, 0, CTRL_CMD_GETFAMILY, 1) < 0) {
+ if (!genlmsg_put(msg, NL_AUTO_PORT, NL_AUTO_SEQ, GENL_ID_CTRL,
+ 0, 0, CTRL_CMD_GETFAMILY, 1)) {
BUG();
goto out_cb_free;
}