Skip to content

Commit

Permalink
Merge pull request #943 from atomicturtle/pr909
Browse files Browse the repository at this point in the history
Backport PR #909, Decoders.d segfault fix
  • Loading branch information
ddpbsd authored Sep 2, 2016
2 parents ed3167b + ec6e3b7 commit 1f4f320
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config/rules-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1f4f320

Please sign in to comment.