From: Victor Julien Date: Thu, 22 Nov 2018 09:34:57 +0000 (+0100) Subject: iprep: small cleanups X-Git-Tag: suricata-4.1.1~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=961610489a921ebce21a1ae9af39fb75901a206b;p=thirdparty%2Fsuricata.git iprep: small cleanups --- diff --git a/src/reputation.c b/src/reputation.c index 58de88c535..280770cedf 100644 --- a/src/reputation.c +++ b/src/reputation.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2013 Open Information Security Foundation +/* Copyright (C) 2007-2018 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free @@ -265,7 +265,7 @@ static int SRepCatSplitLine(char *line, uint8_t *cat, char *shortname, size_t sh /** * \retval 0 valid * \retval 1 header - * \retval -1 boo + * \retval -1 bad line */ static int SRepSplitLine(SRepCIDRTree *cidr_ctx, char *line, Address *ip, uint8_t *cat, uint8_t *value) { @@ -553,7 +553,7 @@ static char *SRepCompleteFilePath(char *file) strlcat(path, "/", path_len); #endif strlcat(path, file, path_len); - } else { + } else { path = SCStrdup(file); if (unlikely(path == NULL)) return NULL;