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:
Dan Williams
2007-12-18 03:08:00 +00:00
parent c142dd6278
commit f99d428711

View File

@@ -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;
}