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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user