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
This commit is contained in:
Ray Strode 2005-06-19 03:34:21 +00:00
parent d9d39dfdb1
commit 292c381113
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,10 @@
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

View file

@ -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 &&