NetworkManager r4182 - trunk/src
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r4182 - trunk/src
- Date: Wed, 15 Oct 2008 17:55:14 +0000 (UTC)
Author: dcbw
Date: Wed Oct 15 17:55:14 2008
New Revision: 4182
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=4182&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:55:14 2008
@@ -613,7 +613,9 @@
g_return_val_if_fail (nlh != NULL, FALSE);
err = replace_default_ip4_route (iface, int_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]