Fix build if luajit is not available.

pull/71/head
Eric Leblond 13 years ago committed by Victor Julien
parent 937ba71491
commit 9c28cd40fd

@ -41,6 +41,7 @@
#include "detect-engine-content-inspection.h"
#include "detect-uricontent.h"
#include "detect-urilen.h"
#include "detect-luajit.h"
#include "app-layer-dcerpc.h"
@ -497,13 +498,14 @@ int DetectEngineContentInspection(DetectEngineCtx *de_ctx, DetectEngineThreadCtx
}
SCReturnInt(0);
} else if (sm->type == DETECT_LUAJIT) {
#ifdef HAVE_LUAJIT
}
else if (sm->type == DETECT_LUAJIT) {
if (DetectLuajitMatchBuffer(det_ctx, s, sm, buffer, buffer_len, det_ctx->buffer_offset) != 1) {
SCReturnInt(0);
}
goto match;
#endif
} else {
SCLogDebug("sm->type %u", sm->type);
#ifdef DEBUG

@ -48,5 +48,6 @@ typedef struct DetectLuajitData {
/* prototypes */
void DetectLuajitRegister (void);
int DetectLuajitMatchBuffer(DetectEngineThreadCtx *det_ctx, Signature *s, SigMatch *sm, uint8_t *buffer, uint32_t buffer_len, uint32_t offset);
#endif /* __DETECT_FILELUAJIT_H__ */

Loading…
Cancel
Save