}
}
- if ((sd->utf_state->get_decode_utf_state_charset() != CHARSET_DEFAULT)
+ if ((sd && sd->utf_state->get_decode_utf_state_charset() != CHARSET_DEFAULT)
|| (ServerConf->normalize_javascript && Server->response.body_size))
{
if ( Server->response.body_size < sizeof(HttpDecodeBuf.data) )
return ip_buf;
}
-// FIXIT-M add throttling so we don't spam syslog
-NORETURN void log_safec_error(const char* msg, void*, int e)
+void log_safec_error(const char* msg, void*, int e)
{
- ErrorMessage("SafeC error %i: %s\n", e, msg);
+ static THREAD_LOCAL unsigned safec_errors = 0;
+
+ if ( ++safec_errors < 1000 )
+ ErrorMessage("SafeC error %i: %s\n", e, msg);
+
assert(false);
}
}
else if (protocol != IpProtocol::TCP || !p->dsize || (p->packet_flags & PKT_STREAM_ORDER_OK))
{
- isTpAppidDiscoveryDone = session->do_service_discovery(protocol, direction, ClientAppId,
- payloadAppId, p);
+ // FIXIT-M commented out assignment causes analysis warning
+ /*isTpAppidDiscoveryDone = */
+ session->do_service_discovery(protocol, direction, ClientAppId, payloadAppId, p);
isTpAppidDiscoveryDone = session->do_client_discovery(direction, p);
session->setAppIdFlag(APPID_SESSION_ADDITIONAL_PACKET);
}
if (!tmp)
{
FreeDetectorAppUrlPattern(pattern);
- //return 0;
+ return;
}
urlList->urlPattern = tmp;
urlList->allocatedCount += URL_LIST_STEP_SIZE;
if (!tmp)
{
FreeDetectorAppUrlPattern(pattern);
- //return 0;
+ return;
}
urlList->urlPattern = tmp;
urlList->allocatedCount += URL_LIST_STEP_SIZE;
if (!tmp)
{
FreeDetectorAppUrlPattern(pattern);
- //return 0;
+ return;
}
urlList->urlPattern = tmp;
urlList->allocatedCount += URL_LIST_STEP_SIZE;
return;
}
else
+ {
DebugFormat(DEBUG_APPID, "Initialized %s\n", detector->name.c_str());
+ }
}
static void luaClientFini(Detector* detector)
}
}
else
+ {
DebugMessage(DEBUG_LOG, "hostServiceTrackerModule.setHosServiceTrackerSize not found");
-
+ }
lua_pop(L, 1);
/*change flow tracker size according to available memory calculation */
}
}
else
+ {
DebugMessage(DEBUG_LOG, "flowTrackerModule.setFlowTrackerSize not found");
-
+ }
lua_pop(L, 1);
}