Repository : ssh://git@open-mesh.org/batctl
On branch : master
commit 36c45e0d4a4db18bb85faf10fc24ee85dd3836f9 Author: Sven Eckelmann sven@narfation.org Date: Mon Apr 15 08:41:01 2019 +0200
batctl: Fix check for batadv genl name resolve
Fixes: ef66312939e6 ("batctl: Add netlink fallback for sysfs' iface_status") Signed-off-by: Sven Eckelmann sven@narfation.org
36c45e0d4a4db18bb85faf10fc24ee85dd3836f9 interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/interface.c b/interface.c index 630dd91..5ff25a7 100644 --- a/interface.c +++ b/interface.c @@ -85,7 +85,7 @@ static char *get_iface_status_netlink(unsigned int meshif, unsigned int hardif, goto err_free_sock;
batadv_family = genl_ctrl_resolve(sock, BATADV_NL_NAME); - if (ret < 0) + if (batadv_family < 0) goto err_free_sock;
cb = nl_cb_alloc(NL_CB_DEFAULT);