mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-17 10:20:38 +02:00
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:
parent
d9d39dfdb1
commit
292c381113
2 changed files with 10 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue