[dovecot-cvs] dovecot/src/auth auth-request-handler.c, 1.12.2.3, 1.12.2.4

tss at dovecot.org tss at dovecot.org
Sat Nov 4 11:22:17 UTC 2006


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv16886

Modified Files:
      Tag: branch_1_0
	auth-request-handler.c 
Log Message:
If passdb returned only userdb_ prefixed extra fields, don't add an extra
TAB to the auth client's OK reply.



Index: auth-request-handler.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request-handler.c,v
retrieving revision 1.12.2.3
retrieving revision 1.12.2.4
diff -u -d -r1.12.2.3 -r1.12.2.4
--- auth-request-handler.c	15 Oct 2006 15:52:24 -0000	1.12.2.3
+++ auth-request-handler.c	4 Nov 2006 11:22:15 -0000	1.12.2.4
@@ -139,7 +139,7 @@
 			str_append(str, fields[src]);
 		}
 	}
-	return str_c(str);
+	return str_len(str) == 0 ? NULL : str_c(str);
 }
 
 static void auth_callback(struct auth_request *request,



More information about the dovecot-cvs mailing list