diff options
author | Thomas Haller <thaller@redhat.com> | 2014-02-14 20:24:07 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-02-14 20:32:48 +0100 |
commit | 54b6501d020506497f33e204fbabd24052ea0899 (patch) | |
tree | 984961afba885fcb996494ecf2541d5b5d82fe6b | |
parent | e0a972461156c12ad1be40f4a4ed84705c4603aa (diff) | |
download | NetworkManager-54b6501d020506497f33e204fbabd24052ea0899.tar.gz |
core: bugfix potential crash in dhcp4_state_changed
Causes glib warning
GLib-GObject-WARNING **: invalid cast from 'NMIP4Config' to 'NMDHCP4Config'
#0 0x0000003370c504e9 in g_logv () from /lib64/libglib-2.0.so.0
#1 0x0000003370c5063f in g_log () from /lib64/libglib-2.0.so.0
#2 0x0000003371c32c43 in g_type_check_instance_cast () from /lib64/libgobject-2.0.so.0
#3 0x000000000042aece in dhcp4_add_option_cb (key=0x1df8350, value=0x1dbca10, user_data=0x1e0d9f0) at nm-device.c:1884
#4 0x00000000004953e5 in nm_dhcp_client_foreach_option (self=0x1dcb2a0, func=0x42aea3 <dhcp4_add_option_cb>, user_data=0x1e0d9f0) at nm-dhcp-client.c:807
#5 0x000000000042b1dc in dhcp4_state_changed (client=0x1dcb2a0, state=DHC_BOUND4, user_data=0x1de4330) at nm-device.c:1959
#6 0x0000003371c126ac in g_cclosure_marshal_VOID(unsigned int0_t, void) () from /lib64/libgobject-2.0.so.0
#7 0x0000003371c104c7 in _g_closure_invoke_va () from /lib64/libgobject-2.0.so.0
#8 0x0000003371c29749 in g_signal_emit_valist () from /lib64/libgobject-2.0.so.0
#9 0x0000003371c2a3af in g_signal_emit () from /lib64/libgobject-2.0.so.0
#10 0x0000000000493d01 in dhcp_client_set_state (self=0x1dcb2a0, state=DHC_BOUND4, emit_state=1, remove_now=0) at nm-dhcp-client.c:241
...
regression, introduced by 46be6b344deb428f8ec7968527b782b6c3feedcc.
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r-- | src/nm-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-device.c b/src/nm-device.c index 2ae327a875..30d2437de1 100644 --- a/src/nm-device.c +++ b/src/nm-device.c @@ -1958,7 +1958,7 @@ dhcp4_state_changed (NMDHCPClient *client, if (config) { nm_dhcp_client_foreach_option (priv->dhcp4_client, dhcp4_add_option_cb, - config); + priv->dhcp4_config); } g_object_notify (G_OBJECT (device), NM_DEVICE_DHCP4_CONFIG); |