mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
monitor: Reset rtnl to NULL after destruction
This commit is contained in:
parent
0b8de3d5df
commit
e34af3cfac
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user