Skip to content

Commit

Permalink
lib-auth: Unescape passdb/userdb extra fields.
Browse files Browse the repository at this point in the history
This only affected \001, \t, \r and \n characters which were left
tab-escaped (e.g. \t as "\001t").
  • Loading branch information
sirainen committed Aug 4, 2016
1 parent b671974 commit a9e71f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-auth/auth-master.c
Expand Up @@ -209,7 +209,7 @@ static bool auth_lookup_reply_callback(const char *cmd, const char *const *args,
if (ctx->return_value >= 0) {
ctx->fields = p_new(ctx->pool, const char *, len + 1);
for (i = 0; i < len; i++)
ctx->fields[i] = p_strdup(ctx->pool, args[i]);
ctx->fields[i] = str_tabunescape(p_strdup(ctx->pool, args[i]));
} else {
/* put the reason string into first field */
ctx->fields = p_new(ctx->pool, const char *, 2);
Expand Down

0 comments on commit a9e71f5

Please sign in to comment.