mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 19:50:08 +01:00
Ensure def_nl_handle is cleared when an error occurs
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3177 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
c142dd6278
commit
f99d428711
1 changed files with 1 additions and 0 deletions
|
|
@ -86,6 +86,7 @@ nm_netlink_get_default_handle (void)
|
|||
if (nl_connect (def_nl_handle, NETLINK_ROUTE) < 0) {
|
||||
nm_error ("couldn't connect to netlink: %s", nl_geterror ());
|
||||
nl_handle_destroy (def_nl_handle);
|
||||
def_nl_handle = NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue