Squashed commit of the following:
commit
2ffa5e26303c5e9f4089a231ca403a74148cc123
Author: Joel Cornett <joel.cornett@gmail.com>
Date: Fri Feb 12 16:02:30 2016 -0500
fix to avoid null reference to memory config
bool DefaultCap::free_space(size_t n)
{
+ if ( !is_packet_thread() )
+ return true;
+
const auto& config = *snort_conf->memory;
- if ( !config.enable || !config.cap || !is_packet_thread() )
+ if ( !config.enable || !config.cap )
return true;
// FIXIT-H call prune handler and attempt to free memory