Blob Blame Raw
commit 8ea1106a44568132947e29b75788d724827cf0e5
Author: Richard Hughes <richard@hughsie.com>
Date:   Wed Aug 6 08:47:11 2008 +0100

    check for a zero destination in the unix network fallback code to fix rh#453531

diff --git a/src/pk-network-unix.c b/src/pk-network-unix.c
index 74b266c..9cf363d 100644
--- a/src/pk-network-unix.c
+++ b/src/pk-network-unix.c
@@ -150,6 +150,12 @@ pk_network_unix_get_network_state (PkNetworkUnix *network_unix)
 			continue;
 		}
 
+		/* is destination zero (default route)? */
+		if (pk_strequal (sections[1], "00000000")) {
+			pk_debug ("destination %s is valid", sections[0]);
+			online = TRUE;
+		}
+
 		/* is gateway nonzero? */
 		if (!pk_strequal (sections[2], "00000000")) {
 			pk_debug ("interface %s is valid", sections[0]);