From ee6894746032629edbcfdf9a010bb1da1f3a52ed Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 16 Jun 2023 14:59:40 +0200 Subject: [PATCH] detect/tls: minor fingerprint cleanup --- src/detect-tls.c | 3 --- src/detect-tls.h | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/detect-tls.c b/src/detect-tls.c index 2d338d41fb..b04f4398bf 100644 --- a/src/detect-tls.c +++ b/src/detect-tls.c @@ -553,7 +553,6 @@ static void DetectTlsIssuerDNFree(DetectEngineCtx *de_ctx, void *ptr) */ static int DetectTlsFingerprintSetup (DetectEngineCtx *de_ctx, Signature *s, const char *str) { - if (DetectContentSetup(de_ctx, s, str) < 0) { return -1; } @@ -573,8 +572,6 @@ static int DetectTlsFingerprintSetup (DetectEngineCtx *de_ctx, Signature *s, con static void DetectTlsFingerprintFree(DetectEngineCtx *de_ctx, void *ptr) { DetectTlsData *id_d = (DetectTlsData *)ptr; - if (id_d->fingerprint) - SCFree(id_d->fingerprint); SCFree(id_d); } diff --git a/src/detect-tls.h b/src/detect-tls.h index 71652eb99d..70d58d56c1 100644 --- a/src/detect-tls.h +++ b/src/detect-tls.h @@ -38,8 +38,7 @@ typedef struct DetectTlsData_ { uint16_t ver; /** tls version to match */ uint32_t flags; /** flags containing match variant (Negation for example) */ char * subject; /** tls certificate subject substring to match */ - char * issuerdn; /** tls certificate issuerDN substring to match */ - char * fingerprint; /** tls fingerprint substring to match */ + char *issuerdn; /** tls certificate issuerDN substring to match */ } DetectTlsData; /* prototypes */ -- 2.47.2