~ubuntu-branches/ubuntu/utopic/suricata/utopic

« back to all changes in this revision

Viewing changes to src/app-layer-detect-proto.c

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Chifflier
  • Date: 2010-09-29 10:02:52 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100929100252-2ak252422dwsqs7e
Tags: 1.0.2-1
New Upstream version 1.0.2 (Closes: #598389)

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
 *  \param ctx the contex
106
106
 *  \param co the content match
107
107
 *  \param proto the proto id
 
108
 *  \initonly
108
109
 */
109
110
static void AlpProtoAddSignature(AlpProtoDetectCtx *ctx, DetectContentData *co, uint16_t ip_proto, uint16_t proto) {
110
111
    AlpProtoSignature *s = SCMalloc(sizeof(AlpProtoSignature));
111
112
    if (s == NULL) {
112
 
        return;
 
113
        SCLogError(SC_ERR_FATAL, "Error allocating memory. Signature not loaded. Not enough memory so.. exiting..");
 
114
        exit(EXIT_FAILURE);
113
115
    }
114
116
    memset(s, 0x00, sizeof(AlpProtoSignature));
115
117