dovecot-2.2: auth: Fixed crash when using %{passdb:} or %{userdb...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Nov 5 09:42:15 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/c129d92e2735
changeset: 19343:c129d92e2735
user: Timo Sirainen <tss at iki.fi>
date: Thu Nov 05 11:41:52 2015 +0200
description:
auth: Fixed crash when using %{passdb:} or %{userdb:} functions when escape_func was NULL
Patch by Michael Slusarz.
diffstat:
src/auth/auth-request-var-expand.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 5717e416f31f -r c129d92e2735 src/auth/auth-request-var-expand.c
--- a/src/auth/auth-request-var-expand.c Wed Nov 04 11:39:58 2015 +0200
+++ b/src/auth/auth-request-var-expand.c Thu Nov 05 11:41:52 2015 +0200
@@ -229,7 +229,7 @@
memset(&ctx, 0, sizeof(ctx));
ctx.auth_request = auth_request;
- ctx.escape_func = escape_func;
+ ctx.escape_func = escape_func == NULL ? escape_none : escape_func;
var_expand_with_funcs(dest, str, table,
auth_request_var_funcs_table, &ctx);
}
More information about the dovecot-cvs
mailing list