diff options
author | lego <lego@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-02-18 18:40:25 +0000 |
---|---|---|
committer | lego <lego@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-02-18 18:40:25 +0000 |
commit | b89cb5d87d1cc8ec57ef26d04c1cf5291d9bb9c7 (patch) | |
tree | 7069279d34ccea708e80081dc2971dea1d181dea /plugins/mate/mate_setup.c | |
parent | 80163aa335d1646f6701ae007e1569537f329080 (diff) |
two fixes in config loading:
- do not accept GopDefs for non existent pdus Pdu
- GogExtra "no For" instead of "no Name"
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13422 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'plugins/mate/mate_setup.c')
-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); |