stream: don't NULL dereference p->flow->protoctx in StreamTcpReassembleDepthReached

remotes/origin/HEAD
Victor Julien 13 years ago
parent 43c7fd7585
commit 9d2e17fa98

@ -1506,7 +1506,7 @@ static int HandleSegmentStartsAfterListSegment(ThreadVars *tv, TcpReassemblyThre
* \retval 0 stream does not have depth reached
*/
int StreamTcpReassembleDepthReached(Packet *p) {
if (p->flow != NULL) {
if (p->flow != NULL && p->flow->protoctx != NULL) {
TcpSession *ssn = p->flow->protoctx;
TcpStream *stream;
if (p->flowflags & FLOW_PKT_TOSERVER) {

Loading…
Cancel
Save