Unlock flow in StreamTcpSegmentForEach if there is no TCP session.

remotes/origin/master-1.1.x
Victor Julien 14 years ago
parent 9aeadd5696
commit 30d84ab20d

@ -4603,8 +4603,10 @@ int StreamTcpSegmentForEach(Packet *p, uint8_t flag, StreamSegmentCallback Callb
SCMutexLock(&p->flow->m);
ssn = (TcpSession *)p->flow->protoctx;
if (ssn == NULL)
return 1;
if (ssn == NULL) {
SCMutexUnlock(&p->flow->m);
return 0;
}
if (flag & FLOW_PKT_TOSERVER) {
stream = &(ssn->server);

Loading…
Cancel
Save