2008-08-14 Dan Williams <dcbw@redhat.com>
* src/nm-netlink-monitor.c src/nm-netlink-monitor.h src/nm-device-ethernet.c - (nm_netlink_monitor_request_status): return an error on failure - (constructor): don't segfault on missing error git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3958 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -434,7 +434,10 @@ nm_netlink_monitor_request_status (NMNetlinkMonitor *monitor,
|
||||
|
||||
/* Update the link cache with latest state */
|
||||
if (nl_cache_refill (priv->nlh, priv->nlh_link_cache)) {
|
||||
nm_warning ("Error updating link cache: %s", nl_geterror ());
|
||||
g_set_error (error, NM_NETLINK_MONITOR_ERROR,
|
||||
NM_NETLINK_MONITOR_ERROR_LINK_CACHE_UPDATE,
|
||||
_("error updating link cache: %s"),
|
||||
nl_geterror ());
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user