~ubuntu-branches/ubuntu/trusty/suricata/trusty

« back to all changes in this revision

Viewing changes to src/detect-parse.c

  • Committer: Package Import Robot
  • Author(s): Pierre Chifflier
  • Date: 2013-10-06 18:52:34 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20131006185234-l305si8liho18j8f
Tags: 1.4.6-1
ImportedĀ UpstreamĀ versionĀ 1.4.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
664
664
    }
665
665
 
666
666
    for (i = 1; i <= ret - 1; i++) {
667
 
        pcre_get_substring(sigstr, ov, MAX_SUBSTRINGS, i, &arr[i - 1]);
 
667
        if (pcre_get_substring(sigstr, ov, MAX_SUBSTRINGS, i, &arr[i - 1]) < 0)
 
668
            goto error;
668
669
        //printf("SigParseBasics: arr[%" PRId32 "] = \"%s\"\n", i-1, arr[i-1]);
669
670
    }
670
671
    arr[i - 1] = NULL;