~ubuntu-branches/ubuntu/raring/suricata/raring

« back to all changes in this revision

Viewing changes to src/detect-http-raw-header.c

  • Committer: Package Import Robot
  • Author(s): Pierre Chifflier
  • Date: 2012-12-14 00:02:51 UTC
  • mfrom: (1.1.18)
  • Revision ID: package-import@ubuntu.com-20121214000251-3326bvmr1x6ofsy5
Tags: 1.4-1
* Imported Upstream version 1.4
* Enable Jansson and LuaJIT support, and add libjansson-dev libluajit-5.1-dev
  to build-deps
* Add python to recommends, for the suricatasc script
* Create /var/run/suricata directory when starting daemon

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 
55
55
#include "app-layer.h"
56
56
 
57
 
#include <htp/htp.h>
58
57
#include "app-layer-htp.h"
59
58
#include "detect-http-raw-header.h"
60
59
#include "stream-tcp.h"
150
149
        goto error;
151
150
    }
152
151
 
153
 
    if (cd->flags & DETECT_CONTENT_WITHIN || cd->flags & DETECT_CONTENT_DISTANCE) {
 
152
    if ((cd->flags & DETECT_CONTENT_WITHIN) || (cd->flags & DETECT_CONTENT_DISTANCE)) {
154
153
        SigMatch *pm =  SigMatchGetLastSMFromLists(s, 4,
155
154
                                                   DETECT_CONTENT, sm->prev,
156
155
                                                   DETECT_PCRE, sm->prev);