From 87ec969b3d538b419b2868b1bd3129195a2898d5 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 28 Jun 2012 23:14:21 +0200 Subject: [PATCH] filemd5: fix compilation if libnss isn't available --- src/util-file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util-file.c b/src/util-file.c index 4b45b22e7d..996c71ee1d 100644 --- a/src/util-file.c +++ b/src/util-file.c @@ -702,11 +702,13 @@ void FileDisableMd5(Flow *f, uint8_t direction) { ptr, direction == STREAM_TOSERVER ? "toserver":"toclient"); ptr->flags |= FILE_NOMD5; +#ifdef HAVE_NSS /* destroy any ctx we may have so far */ if (ptr->md5_ctx != NULL) { HASH_Destroy(ptr->md5_ctx); ptr->md5_ctx = NULL; } +#endif } } -- 2.47.2