aboutsummaryrefslogtreecommitdiffstats
path: root/epan/radius_dict.l
diff options
context:
space:
mode:
Diffstat (limited to 'epan/radius_dict.l')
-rw-r--r--epan/radius_dict.l10
1 files changed, 7 insertions, 3 deletions
diff --git a/epan/radius_dict.l b/epan/radius_dict.l
index 6d7337e4cd..719b752278 100644
--- a/epan/radius_dict.l
+++ b/epan/radius_dict.l
@@ -305,10 +305,14 @@ void add_vendor(const gchar* name, guint32 vendor_id, guint vendor_type_octets,
v->code = vendor_id;
v->ett = -1;
v->name = NULL;
- v->type_octets = vendor_type_octets;
- v->length_octets = vendor_length_octets;
- v->has_flags = vendor_has_flags;
}
+ /* Assume that the dictionary knows the 'ground truth' about the
+ * type/length/has_flags information and thus allow the dictionary to
+ * overwrite these values even for vendors that have already been loaded.
+ */
+ v->type_octets = vendor_type_octets;
+ v->length_octets = vendor_length_octets;
+ v->has_flags = vendor_has_flags;
if (v->name)
g_free((gpointer) v->name);