bug 452 - enable http extra callbacks for configs other than the default configs

remotes/origin/HEAD
Anoop Saldanha 15 years ago committed by Victor Julien
parent 225b917e93
commit 608f4fe787

@ -2392,15 +2392,20 @@ void RegisterHTPParsers(void)
void AppLayerHtpRegisterExtraCallbacks(void) { void AppLayerHtpRegisterExtraCallbacks(void) {
SCEnter(); SCEnter();
SCLogDebug("Registering extra htp callbacks"); SCLogDebug("Registering extra htp callbacks");
if (need_htp_request_body == 1) {
SCLogDebug("Registering callback htp_config_register_request_body_data on htp"); HTPCfgRec *p_cfglist = &cfglist;
htp_config_register_request_body_data(cfglist.cfg, while (p_cfglist != NULL) {
HTPCallbackRequestBodyData); if (need_htp_request_body == 1) {
} SCLogDebug("Registering callback htp_config_register_request_body_data on htp");
if (need_htp_response_body == 1) { htp_config_register_request_body_data(p_cfglist->cfg,
SCLogDebug("Registering callback htp_config_register_response_body_data on htp"); HTPCallbackRequestBodyData);
htp_config_register_response_body_data(cfglist.cfg, }
HTPCallbackResponseBodyData); if (need_htp_response_body == 1) {
SCLogDebug("Registering callback htp_config_register_response_body_data on htp");
htp_config_register_response_body_data(p_cfglist->cfg,
HTPCallbackResponseBodyData);
}
p_cfglist = p_cfglist->next;
} }
SCReturn; SCReturn;
} }

Loading…
Cancel
Save