Commit 292c3811 authored by Ray Strode's avatar Ray Strode
Browse files

2005-06-18 Ray Strode <rstrode@redhat.com>

	* src/nm-netlink-monitor.c
	(nm_netlink_monitor_event_handler): remove bogus < 0
	check on unsigned value and return early if the kernel
	didn't send any bytes.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@718 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
parent d9d39dfd
2005-06-18 Ray Strode <rstrode@redhat.com>
* src/nm-netlink-monitor.c
(nm_netlink_monitor_event_handler): remove bogus < 0
check on unsigned value and return early if the kernel
didn't send any bytes.
2005-06-17 Robert Love <rml@novell.com>
* initscript/SUSE/networkmanager: Change the Provides and default
......
......@@ -607,15 +607,14 @@ nm_netlink_monitor_event_handler (GIOChannel *channel,
return FALSE;
}
if (num_received_bytes == 0)
return TRUE;
/* Why does NLMSG_* use unsigned ints instead of unsigned longs
* or size_t?
*/
num_bytes_to_process = (guint) num_received_bytes;
/* FIXME: This cannot be true */
if (num_bytes_to_process < 0)
return TRUE;
processing_is_done = FALSE;
for (header = (struct nlmsghdr *) received_bytes;
!processing_is_done &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment