dovecot-2.1: lib-auth: Treat cert_username="" and initial_resp_b...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jan 19 15:57:20 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/141d1e26b13a
changeset: 13952:141d1e26b13a
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jan 19 15:41:16 2012 +0200
description:
lib-auth: Treat cert_username="" and initial_resp_base64="" the same as NULLs.

diffstat:

 src/lib-auth/auth-client-request.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 826ac15f8a13 -r 141d1e26b13a src/lib-auth/auth-client-request.c
--- a/src/lib-auth/auth-client-request.c	Wed Jan 18 23:44:40 2012 +0200
+++ b/src/lib-auth/auth-client-request.c	Thu Jan 19 15:41:16 2012 +0200
@@ -82,9 +82,9 @@
 	request->request_info.mech = p_strdup(pool, request_info->mech);
 	request->request_info.service = p_strdup(pool, request_info->service);
 	request->request_info.cert_username =
-		p_strdup(pool, request_info->cert_username);
+		p_strdup_empty(pool, request_info->cert_username);
 	request->request_info.initial_resp_base64 =
-		p_strdup(pool, request_info->initial_resp_base64);
+		p_strdup_empty(pool, request_info->initial_resp_base64);
 	
 	request->callback = callback;
 	request->context = context;


More information about the dovecot-cvs mailing list