libnm-glib: fix retrieval of DHCP4 and DHCP6 options (rh #611141)

Busted since 2008 apparently.  Oops.
This commit is contained in:
Dan Williams 2010-08-03 16:39:37 -07:00
parent afca445d16
commit ed1d84b9cc
2 changed files with 7 additions and 7 deletions

View file

@ -17,7 +17,7 @@
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
* Copyright (C) 2008 Red Hat, Inc.
* Copyright (C) 2008 - 2010 Red Hat, Inc.
* Copyright (C) 2008 Novell, Inc.
*/
@ -216,9 +216,9 @@ nm_dhcp4_config_get_options (NMDHCP4Config *config)
return priv->options;
if (!_nm_object_get_property (NM_OBJECT (config),
"org.freedesktop.DBus.Properties",
"Options",
&value))
NM_DBUS_INTERFACE_DHCP4_CONFIG,
"Options",
&value))
goto out;
demarshal_dhcp4_options (NM_OBJECT (config), NULL, &value, &priv->options);

View file

@ -216,9 +216,9 @@ nm_dhcp6_config_get_options (NMDHCP6Config *config)
return priv->options;
if (!_nm_object_get_property (NM_OBJECT (config),
"org.freedesktop.DBus.Properties",
"Options",
&value))
NM_DBUS_INTERFACE_DHCP6_CONFIG,
"Options",
&value))
goto out;
demarshal_dhcp6_options (NM_OBJECT (config), NULL, &value, &priv->options);