eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit e34af3cfac52c07e9a69e327242a2d09a6bfc8ee
parent 0b8de3d5df66699cd70f87aae52912a02d92bbcc
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Thu, 17 Oct 2019 11:51:54 -0500

monitor: Reset rtnl to NULL after destruction

Diffstat:
Mmonitor/main.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/monitor/main.c b/monitor/main.c @@ -250,7 +250,6 @@ static struct l_netlink *rtm_interface_send_message(struct l_netlink *rtnl, linkinfo_rta->rta_len = rta_buf - (void *) linkinfo_rta; switch (rtm_msg_type) { - case RTM_NEWLINK: rtmmsg->ifi_flags = IFF_UP | IFF_ALLMULTI | IFF_NOARP; @@ -275,8 +274,8 @@ static struct l_netlink *rtm_interface_send_message(struct l_netlink *rtnl, default: l_netlink_destroy(rtnl); - l_free(rtmmsg); - return NULL; + rtnl = NULL; + break; } l_free(rtmmsg);