summaryrefslogtreecommitdiff
path: root/libnm-core/nm-setting-wimax.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnm-core/nm-setting-wimax.c')
-rw-r--r--libnm-core/nm-setting-wimax.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libnm-core/nm-setting-wimax.c b/libnm-core/nm-setting-wimax.c
index 113e27fc45..9de966f3fd 100644
--- a/libnm-core/nm-setting-wimax.c
+++ b/libnm-core/nm-setting-wimax.c
@@ -167,7 +167,8 @@ set_property (GObject *object, guint prop_id,
break;
case PROP_MAC_ADDRESS:
g_free (priv->mac_address);
- priv->mac_address = g_value_dup_string (value);
+ priv->mac_address = _nm_utils_hwaddr_canonical_or_invalid (g_value_get_string (value),
+ ETH_ALEN);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);