Small fixes

remotes/origin/master-1.0.x
root 16 years ago committed by Victor Julien
parent bdf119ade3
commit 2c796339f7

@ -96,12 +96,13 @@ int DetectIsdataatMatch (ThreadVars *t, DetectEngineThreadCtx *det_ctx, Packet *
printf("detect-isdataat: Nothing now, this is checked in detect-content.c!\n");
#endif
}
else if( !(idad->flags & ISDATAAT_RELATIVE) && p->payload_len >= idad->dataat) {
ret=1; /* its not relative and we have more data in the packet than the offset of isdataat */
#ifdef DEBUG
printf("detect-isdataat: matched with payload len : %u , dataat? %u ; relative? %u ...\n", p->payload_len,idad->dataat,idad->flags &ISDATAAT_RELATIVE);
#endif
}
else
if( !(idad->flags & ISDATAAT_RELATIVE) && p->payload_len >= idad->dataat) {
ret=1; /* its not relative and we have more data in the packet than the offset of isdataat */
#ifdef DEBUG
printf("detect-isdataat: matched with payload len : %u , dataat? %u ; relative? %u ...\n", p->payload_len,idad->dataat,idad->flags &ISDATAAT_RELATIVE);
#endif
}
return ret;
}

@ -5,7 +5,7 @@
#define MAX_WINDOW_VALUE 65535
typedef struct DetectWindowData_ {
uint8_t negated; /** negated? 1=True : 0=False */
uint8_t negated; /** negated? 1=True : 0=False */
uint32_t size; /** window size to match */
} DetectWindowData;

Loading…
Cancel
Save