Squashed commit of the following:
commit
b8a616d3813c26199ca5e216678498e71b31dba8
Author: Steven Baigal (sbaigal) <sbaigal@cisco.com>
Date: Thu Jan 10 14:47:37 2019 -0500
stream: fixed ignore_flow segfault bug caused by allocating generic flow data instead of inspector specific flow data
p, PktType::TCP, IpProtocol::TCP,
&session->clientIP, session->clientPort,
&session->serverIP, session->serverPort,
- SSN_DIR_BOTH, FtpDataFlowData::inspector_id);
+ SSN_DIR_BOTH, (new FtpDataFlowData(p)));
}
}
}
p, PktType::TCP, IpProtocol::TCP,
&session->clientIP, session->clientPort,
&session->serverIP, session->serverPort,
- SSN_DIR_BOTH, FtpDataFlowData::inspector_id);
+ SSN_DIR_BOTH, (new FtpDataFlowData(p)));
}
}
}
else
{
Stream::ignore_flow(p, p->flow->pkt_type, p->get_ip_proto_next(), &mdataA->maddress,
- mdataA->mport, &mdataB->maddress, mdataB->mport, SSN_DIR_BOTH, SipFlowData::inspector_id);
+ mdataA->mport, &mdataB->maddress, mdataB->mport, SSN_DIR_BOTH, (new SipFlowData));
}
sip_stats.ignoreChannels++;
mdataA = mdataA->nextM;
const Packet* ctrlPkt, PktType type, IpProtocol ip_proto,
const SfIp* srcIP, uint16_t srcPort,
const SfIp* dstIP, uint16_t dstPort,
- char direction, uint32_t flowdata_id)
+ char direction, FlowData* fd)
{
assert(flow_con);
- FlowData* fd = new FlowData(flowdata_id);
return flow_con->add_expected(
ctrlPkt, type, ip_proto, srcIP, srcPort, dstIP, dstPort, direction, fd);
// when it arrives.
static int ignore_flow(
const Packet* ctrlPkt, PktType, IpProtocol, const snort::SfIp* srcIP, uint16_t srcPort,
- const snort::SfIp* dstIP, uint16_t dstPort, char direction, uint32_t flowdata_id);
+ const snort::SfIp* dstIP, uint16_t dstPort, char direction, FlowData* fd);
// Resume inspection for flow.
// FIXIT-L does resume work only for a flow that has been stopped by call to stop_inspection?