[dovecot-cvs] dovecot/src/lib-auth auth-server-request.c,1.16,1.17

cras at dovecot.org cras at dovecot.org
Tue Oct 19 02:03:57 EEST 2004


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

Modified Files:
	auth-server-request.c 
Log Message:
Use reason=xx field in FAIL to report the error message instead of separate
field.



Index: auth-server-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-auth/auth-server-request.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- auth-server-request.c	18 Oct 2004 01:13:25 -0000	1.16
+++ auth-server-request.c	18 Oct 2004 23:03:54 -0000	1.17
@@ -201,7 +201,7 @@
 {
 	struct auth_request *request;
         struct auth_server_connection *next;
-	const char *error, *const *list;
+	const char *const *list;
 	unsigned int id;
 
 	list = t_strsplit(args, "\t");
@@ -218,14 +218,6 @@
 		return TRUE;
 	}
 
-	if (list[1] == NULL) {
-		error = NULL;
-		list++;
-	} else {
-		error = *list[1] == '\0' ? NULL : list[1];
-		list += 2;
-	}
-
 	hash_remove(conn->requests, POINTER_CAST(request->id));
 	if (request->retrying) {
 		next = request->next_conn == NULL ? NULL :
@@ -251,7 +243,7 @@
 		}
 	}
 
-	request->callback(request, -1, error, list, request->context);
+	request->callback(request, -1, NULL, list+1, request->context);
 	auth_client_request_free(request);
 	return TRUE;
 }



More information about the dovecot-cvs mailing list