changeset 22840:e88a611656a8

auth: Set correct context type when bypassing reporting in auth_success Broken in 41ff6e6a4a085786d4c15a58c7c50a28e2110c3f
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Mon, 12 Feb 2018 12:28:37 +0200
parents e94be670bd18
children f746d87d3aff
files src/auth/auth-request.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/auth-request.c	Thu Feb 08 02:22:18 2018 +0200
+++ b/src/auth/auth-request.c	Mon Feb 12 12:28:37 2018 +0200
@@ -163,7 +163,8 @@
 		buffer_create_from_const_data(&buf, "", 0);
 		struct auth_policy_check_ctx ctx = {
 			.success_data = &buf,
-			.request = request
+			.request = request,
+			.type = AUTH_POLICY_CHECK_TYPE_SUCCESS,
 		};
 		auth_request_policy_check_callback(0, &ctx);
 		return;