~ubuntu-branches/ubuntu/saucy/suricata/saucy-proposed

« back to all changes in this revision

Viewing changes to src/detect-within.c

  • Committer: Package Import Robot
  • Author(s): Pierre Chifflier
  • Date: 2013-05-21 12:42:45 UTC
  • mfrom: (1.1.19)
  • Revision ID: package-import@ubuntu.com-20130521124245-f083fzuw7z2w1db4
Tags: 1.4.1-1
* Imported Upstream version 1.4.1
* Install python control script (add dependency on python, and use
  dh_python2 for build)
* Bump Standards Version to 3.9.4
* Fix removal of pid file in init script (Closes: #700547)
  Thanks to Игорь Козинов <madvampik@gmail.com>.
* Add support for af-packet mode in init script (Closes: #697928).
  Thanks to Jamie Strandboge <jamie@ubuntu.com>.

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
            }
166
166
        }
167
167
    } else {
168
 
        pm = SigMatchGetLastSMFromLists(s, 24,
 
168
        pm = SigMatchGetLastSMFromLists(s, 28,
169
169
                DETECT_CONTENT, s->sm_lists_tail[DETECT_SM_LIST_PMATCH],
170
170
                DETECT_CONTENT, s->sm_lists_tail[DETECT_SM_LIST_UMATCH],
171
171
                DETECT_CONTENT, s->sm_lists_tail[DETECT_SM_LIST_HCBDMATCH],
177
177
                DETECT_CONTENT, s->sm_lists_tail[DETECT_SM_LIST_HSMDMATCH],
178
178
                DETECT_CONTENT, s->sm_lists_tail[DETECT_SM_LIST_HSCDMATCH],
179
179
                DETECT_CONTENT, s->sm_lists_tail[DETECT_SM_LIST_HRUDMATCH],
180
 
                DETECT_CONTENT, s->sm_lists_tail[DETECT_SM_LIST_HUADMATCH]);
 
180
                DETECT_CONTENT, s->sm_lists_tail[DETECT_SM_LIST_HUADMATCH],
 
181
                DETECT_CONTENT, s->sm_lists_tail[DETECT_SM_LIST_HHHDMATCH],
 
182
                DETECT_CONTENT, s->sm_lists_tail[DETECT_SM_LIST_HRHHDMATCH]);
181
183
        if (pm == NULL) {
182
184
            SCLogError(SC_ERR_WITHIN_MISSING_CONTENT, "\"within\" requires "
183
185
                       "preceding content, uricontent, http_client_body, "
184
186
                       "http_server_body, http_header, http_raw_header, "
185
187
                       "http_method, http_cookie, http_raw_uri, "
186
 
                       "http_stat_msg, http_stat_code or http_user_agent "
187
 
                       "option");
 
188
                       "http_stat_msg, http_stat_code, http_user_agent, "
 
189
                       "http_host or http_raw_host option");
188
190
            if (dubbed)
189
191
                SCFree(str);
190
192
            return -1;