NetworkManager r4183 - trunk/src



Author: dcbw
Date: Wed Oct 15 17:57:09 2008
New Revision: 4183
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=4183&view=rev

Log:
Fix return value on success if the first route addition succeeded

Modified:
   trunk/src/NetworkManagerSystem.c

Modified: trunk/src/NetworkManagerSystem.c
==============================================================================
--- trunk/src/NetworkManagerSystem.c	(original)
+++ trunk/src/NetworkManagerSystem.c	Wed Oct 15 17:57:09 2008
@@ -656,7 +656,9 @@
 	g_return_val_if_fail (nlh != NULL, FALSE);
 
 	err = replace_default_ip4_route (iface, gw, mss);
-	if (err != -ESRCH) {
+	if (err == 0) {
+		return TRUE;
+	} else if (err != -ESRCH) {
 		nm_warning ("replace_default_ip4_route() returned error %s (%d)",
 		            strerror (err), err);
 		return FALSE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]