Skip to content

Commit

Permalink
doveconf: Fix infinite loop when hiding sensitive information
Browse files Browse the repository at this point in the history
For example with "nopassword=y". Broken in
fc02343
  • Loading branch information
sirainen authored and cmouse committed Aug 21, 2018
1 parent cbe7865 commit 858dac8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/config/doveconf.c
Expand Up @@ -222,6 +222,11 @@ hide_secrets_from_value(struct ostream *output, const char *key,
ptr++;
}
optr = ptr;
} else {
/* "secret" is prefixed with alphanumeric character,
e.g. "nopassword". So it's not really a secret.
Skip forward to avoid infinite loop. */
ptr++;
}
}
/* if we are dealing with output, send rest here */
Expand Down

0 comments on commit 858dac8

Please sign in to comment.