Skip to content

Commit

Permalink
Backport PR #909, Decoders.d segfault fix
Browse files Browse the repository at this point in the history
Signed-off-by: Scott R. Shinn <[email protected]>
  • Loading branch information
atomicturtle committed Sep 1, 2016
1 parent f5a0b4f commit ec6e3b7
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 ec6e3b7

Please sign in to comment.