In order to avoid a crash at reanalize_gop(), do not accept a GogKey where the Gop...
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 19 Feb 2005 03:10:50 +0000 (03:10 +0000)
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 19 Feb 2005 03:10:50 +0000 (03:10 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13429 f5534014-38df-0310-8fa8-9805f1628bb7

plugins/mate/mate_setup.c

index 638745a783e8628c73946fa94cab23e018d04d5b..4852776ae6f5b7d70ca26cc36178bba6d58b74a9 100644 (file)
@@ -905,6 +905,11 @@ static gboolean config_gogkey(AVPL* avpl) {
                return FALSE;
        }
 
+       if (! g_hash_table_lookup(matecfg->gopcfgs,on) ) {
+               report_error("MATE: GogKey: no such Gop %s in On",on);
+               return FALSE;
+       }
+       
        rename_avpl(avpl,name);
 
        gogkeys = (LoAL*) g_hash_table_lookup(matecfg->gogs_by_gopname,on);