[network-manager-applet] gconf: fix MAC address length check (found by Bastien Nocera)



commit 7c38858cf25c7e1953a1f43da0d16840b81b97e3
Author: Dan Williams <dcbw redhat com>
Date:   Tue Jun 23 12:59:46 2009 -0400

    gconf: fix MAC address length check (found by Bastien Nocera)

 src/gconf-helpers/gconf-helpers.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gconf-helpers/gconf-helpers.c b/src/gconf-helpers/gconf-helpers.c
index 3dfb50b..4c766aa 100644
--- a/src/gconf-helpers/gconf-helpers.c
+++ b/src/gconf-helpers/gconf-helpers.c
@@ -774,7 +774,7 @@ nm_gconf_set_mac_address_helper (GConfClient *client,
 	if (!found || !value)
 		return FALSE;
 
-	g_return_val_if_fail (value->len != ETH_ALEN, FALSE);
+	g_return_val_if_fail (value->len == ETH_ALEN, FALSE);
 
 	gc_key = g_strdup_printf ("%s/%s/%s", path, setting, key);
 	if (!gc_key) {



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