bool default_binder;
- void vectorize();
+ void vectorize(SnortConfig*);
};
-void FrameworkPolicy::vectorize()
+void FrameworkPolicy::vectorize(SnortConfig* sc)
{
passive.alloc(ilist.size());
packet.alloc(ilist.size());
{
// probes always run
// add them to default so they can be found on InspectorManager::probe
- SnortConfig* sc = SnortConfig::get_conf();
sc->policy_map->get_inspection_policy(0)->framework_policy->probe.add(p);
break;
}
s_trash2.push_back(p->handler);
else
s_trash.push_back(p->handler);
+
delete p;
}
delete pi->framework_policy;
}
sort(fp->ilist.begin(), fp->ilist.end(), PHInstance::comp);
- fp->vectorize();
+ fp->vectorize(sc);
// FIXIT-M checking for wizard here would avoid fatals for
// can't bind wizard but this exposes other issues that must
}
set_inspection_policy(sc);
+
return ok;
}