3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

monitor: Reset rtnl to NULL after destruction

This commit is contained in:
Denis Kenzior 2019-10-17 11:51:54 -05:00
parent 0b8de3d5df
commit e34af3cfac

View File

@ -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; linkinfo_rta->rta_len = rta_buf - (void *) linkinfo_rta;
switch (rtm_msg_type) { switch (rtm_msg_type) {
case RTM_NEWLINK: case RTM_NEWLINK:
rtmmsg->ifi_flags = IFF_UP | IFF_ALLMULTI | IFF_NOARP; 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: default:
l_netlink_destroy(rtnl); l_netlink_destroy(rtnl);
l_free(rtmmsg); rtnl = NULL;
return NULL; break;
} }
l_free(rtmmsg); l_free(rtmmsg);