aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/decode_as_dcerpc.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-09-13 18:42:12 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-09-13 18:42:12 +0000
commita894dca5f9667354e0afc3b264c4a244f3ab3800 (patch)
tree6752fc50b1144d5e428d068a77a70563cdd7809d /gtk/decode_as_dcerpc.c
parentb7069db84f4f7d441ba8d52fe339436d2453729f (diff)
don't crash with a NULL pointer exception, if "do not decode as" is used
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15787 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/decode_as_dcerpc.c')
-rw-r--r--gtk/decode_as_dcerpc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/decode_as_dcerpc.c b/gtk/decode_as_dcerpc.c
index 5577a2aad6..496fc3750a 100644
--- a/gtk/decode_as_dcerpc.c
+++ b/gtk/decode_as_dcerpc.c
@@ -275,13 +275,13 @@ decode_change_one_dcerpc_binding(const gchar *table_name, decode_dcerpc_bind_val
}
#endif
- if (abbrev != NULL && strcmp(abbrev, "(default)") == 0) {
+ if (key == NULL || (abbrev != NULL && strcmp(abbrev, "(default)") == 0) ) {
decode_dcerpc_binding_reset(table_name, binding);
} else {
- binding->ifname = g_string_new(abbrev);
- binding->uuid = key->uuid;
- binding->ver = key->ver;
- decode_dcerpc_binding_change(table_name, binding);
+ binding->ifname = g_string_new(abbrev);
+ binding->uuid = key->uuid;
+ binding->ver = key->ver;
+ decode_dcerpc_binding_change(table_name, binding);
}
#if GTK_MAJOR_VERSION >= 2
if (abbrev != NULL)