From: Victor Julien Date: Mon, 24 Oct 2022 11:00:46 +0000 (+0200) Subject: classification: avoid duplicate errors X-Git-Tag: suricata-7.0.0-rc1~259 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f45914cd991f1852d652a4e7b95c410150b67bea;p=thirdparty%2Fsuricata.git classification: avoid duplicate errors --- diff --git a/src/util-classification-config.c b/src/util-classification-config.c index cafa1c7165..669338e1a6 100644 --- a/src/util-classification-config.c +++ b/src/util-classification-config.c @@ -397,9 +397,7 @@ static SCClassConfClasstype *SCClassConfAllocClasstype(uint16_t classtype_id, return NULL; memset(ct, 0, sizeof(SCClassConfClasstype)); - if ( (ct->classtype = SCClassConfStringToLowercase(classtype)) == NULL) { - SCLogError(SC_ERR_MEM_ALLOC, "Error allocating memory"); - + if ((ct->classtype = SCClassConfStringToLowercase(classtype)) == NULL) { SCClassConfDeAllocClasstype(ct); return NULL; }