Fix checking for the stream GAP after the ssn ptr was initialized.

remotes/origin/master-1.0.x
Victor Julien 15 years ago
parent b6a45fd1a4
commit c3392b7c22

@ -706,15 +706,16 @@ int AppLayerParse(Flow *f, uint8_t proto, uint8_t flags, uint8_t *input,
uint16_t parser_idx = 0; uint16_t parser_idx = 0;
AppLayerProto *p = &al_proto_table[proto]; AppLayerProto *p = &al_proto_table[proto];
TcpSession *ssn = NULL;
if (flags & STREAM_GAP) { ssn = f->protoctx;
SCLogDebug("stream gap detected (missing packets), this is not yet supported."); if (ssn == NULL) {
SCLogDebug("no TCP session");
goto error; goto error;
} }
TcpSession *ssn = f->protoctx; if (flags & STREAM_GAP) {
if (ssn == NULL) { SCLogDebug("stream gap detected (missing packets), this is not yet supported.");
SCLogDebug("no TCP session");
goto error; goto error;
} }

Loading…
Cancel
Save