Unlock flow in StreamTcpSegmentForEach if there is no TCP session.

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

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

Loading…
Cancel
Save