2006-08-24 Dan Williams <dcbw@redhat.com>
Patch from Ed Catmur: * src/NetworkManagerUtils.c - (nm_utils_ip4_netmask_to_prefix): don't infinitely loop if netmask is 0 (Gnome #352634) git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1987 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2006-08-24 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
Patch from Ed Catmur:
|
||||
* src/NetworkManagerUtils.c
|
||||
- (nm_utils_ip4_netmask_to_prefix): don't infinitely loop
|
||||
if netmask is 0 (Gnome #352634)
|
||||
|
||||
2006-08-17 Robert Love <rml@novell.com>
|
||||
|
||||
* src/backends/NetworkManagerSuSE.c: Do not restart ypbind; our ypbind
|
||||
|
@@ -707,6 +707,8 @@ int nm_utils_ip4_netmask_to_prefix (guint32 ip4_netmask)
|
||||
{
|
||||
int i = 1;
|
||||
|
||||
g_return_val_if_fail (ip4_netmask != 0, 0);
|
||||
|
||||
/* Just count how many bit shifts we need */
|
||||
ip4_netmask = ntohl (ip4_netmask);
|
||||
while (!(ip4_netmask & 0x1) && ++i)
|
||||
|
Reference in New Issue
Block a user