Fix return value on success if the first route addition succeeded

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4182 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2008-10-15 17:55:14 +00:00
parent 38dbdae266
commit 505064221d

View file

@ -613,7 +613,9 @@ nm_system_replace_default_ip4_route_vpn (const char *iface,
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;