From ec6e3b7a045fb463735afc34bf43a26eaeeeed53 Mon Sep 17 00:00:00 2001 From: "Scott R. Shinn" Date: Thu, 1 Sep 2016 11:45:41 -0400 Subject: [PATCH] Backport PR #909, Decoders.d segfault fix Signed-off-by: Scott R. Shinn --- src/config/rules-config.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config/rules-config.c b/src/config/rules-config.c index 6c437cb73..763cdbea6 100644 --- a/src/config/rules-config.c +++ b/src/config/rules-config.c @@ -141,6 +141,8 @@ int Read_Rules(XML_NODE node, void *configp, __attribute__((unused)) void *mailp f_name[PATH_MAX + 1] = '\0'; dfd = opendir(path); + att_count = 0; // Reset this variable after it was used in decoder + if (dfd != NULL) { start_point = decoders_size - 1; while ((entry = readdir(dfd)) != NULL) {