|
|
@ -1421,8 +1421,8 @@ int SigValidate(DetectEngineCtx *de_ctx, Signature *s)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
if (((s->flags & SIG_FLAG_FILESTORE) || s->file_flags != 0) &&
|
|
|
|
if ((s->flags & SIG_FLAG_FILESTORE) || s->file_flags != 0) {
|
|
|
|
s->alproto != ALPROTO_UNKNOWN &&
|
|
|
|
if (s->alproto != ALPROTO_UNKNOWN &&
|
|
|
|
!AppLayerParserSupportsFiles(IPPROTO_TCP, s->alproto))
|
|
|
|
!AppLayerParserSupportsFiles(IPPROTO_TCP, s->alproto))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
SCLogError(SC_ERR_NO_FILES_FOR_PROTOCOL, "protocol %s doesn't "
|
|
|
|
SCLogError(SC_ERR_NO_FILES_FOR_PROTOCOL, "protocol %s doesn't "
|
|
|
@ -1430,6 +1430,11 @@ int SigValidate(DetectEngineCtx *de_ctx, Signature *s)
|
|
|
|
SCReturnInt(0);
|
|
|
|
SCReturnInt(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (s->alproto == ALPROTO_HTTP) {
|
|
|
|
|
|
|
|
AppLayerHtpNeedFileInspection();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SCReturnInt(1);
|
|
|
|
SCReturnInt(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|