[dovecot-cvs] dovecot/src/auth auth-request-handler.c,1.23,1.24

tss at dovecot.org tss at dovecot.org
Fri Jan 26 00:31:39 UTC 2007


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

Modified Files:
	auth-request-handler.c 
Log Message:
code cleanup



Index: auth-request-handler.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request-handler.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- auth-request-handler.c	19 Jan 2007 15:19:32 -0000	1.23
+++ auth-request-handler.c	26 Jan 2007 00:31:36 -0000	1.24
@@ -115,13 +115,12 @@
 	unsigned int src, dest;
 	bool seen_pass = FALSE;
 
-	extra_fields = request->extra_fields == NULL ? NULL :
-		auth_stream_reply_export(request->extra_fields);
+	if (auth_stream_is_empty(request->extra_fields))
+		return NULL;
 
-	if (!request->proxy) {
-		if (auth_stream_is_empty(request->extra_fields))
-			return NULL;
+	extra_fields = auth_stream_reply_export(request->extra_fields);
 
+	if (!request->proxy) {
 		/* we only wish to remove all fields prefixed with "userdb_" */
 		if (strstr(extra_fields, "userdb_") == NULL)
 			return extra_fields;



More information about the dovecot-cvs mailing list