diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2005-02-18 18:40:25 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2005-02-18 18:40:25 +0000 |
commit | 99f52419d522a49b737200b6e910976e9d6b2e44 (patch) | |
tree | 7069279d34ccea708e80081dc2971dea1d181dea /plugins/mate | |
parent | 84f16e153c5e69eb3929bff0570b4ae9c79a73cb (diff) | |
download | wireshark-99f52419d522a49b737200b6e910976e9d6b2e44.tar.gz wireshark-99f52419d522a49b737200b6e910976e9d6b2e44.tar.bz2 wireshark-99f52419d522a49b737200b6e910976e9d6b2e44.zip |
two fixes in config loading:
- do not accept GopDefs for non existent pdus Pdu
- GogExtra "no For" instead of "no Name"
svn path=/trunk/; revision=13422
Diffstat (limited to 'plugins/mate')
-rw-r--r-- | plugins/mate/mate_setup.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/mate/mate_setup.c b/plugins/mate/mate_setup.c index 055b12fd73..4b8ad3504a 100644 --- a/plugins/mate/mate_setup.c +++ b/plugins/mate/mate_setup.c @@ -733,6 +733,11 @@ static gboolean config_gop(AVPL* avpl) { report_error("MATE: GopDef: no On in: %s",avpl->name); return FALSE; } + + if (g_hash_table_lookup(matecfg->pducfgs,on) == NULL ) { + report_error("MATE: GopDef: Pdu '%s' does not exist in: %s",on,avpl->name); + return FALSE; + } if (g_hash_table_lookup(matecfg->gops_by_pduname,on) ) { report_error("MATE: GopDef: Gop for Pdu '%s' exists already in: %s",on,avpl->name); @@ -859,7 +864,7 @@ static gboolean config_gogkey(AVPL* avpl) { if ( ! name || ! cfg ) { if ( ! name ) - report_error("MATE: GogKey: no Name in %s",avpl->name); + report_error("MATE: GogKey: no For in %s",avpl->name); else report_error("MATE: GogKey: no such Gop '%s' in %s",name,avpl->name); |