[dovecot-cvs] dovecot/src/master auth-process.c,1.32,1.33

cras at procontrol.fi cras at procontrol.fi
Sat Feb 8 11:31:02 EET 2003


Update of /home/cvs/dovecot/src/master
In directory danu:/tmp/cvs-serv19180/src/master

Modified Files:
	auth-process.c 
Log Message:
cleanups



Index: auth-process.c
===================================================================
RCS file: /home/cvs/dovecot/src/master/auth-process.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- auth-process.c	1 Feb 2003 02:06:12 -0000	1.32
+++ auth-process.c	8 Feb 2003 09:31:00 -0000	1.33
@@ -44,9 +44,9 @@
 
 static void auth_process_destroy(struct auth_process *p);
 
-static int handle_request(struct auth_process *process,
-			  struct auth_master_reply *reply,
-			  const unsigned char *data)
+static int handle_reply(struct auth_process *process,
+			struct auth_master_reply *reply,
+			const unsigned char *data)
 {
 	size_t nul_pos;
 	void *context;
@@ -154,7 +154,7 @@
 
 	if (!p->in_auth_reply) {
 		data = i_stream_get_data(p->input, &size);
-		if (size < sizeof(struct auth_master_reply))
+		if (size < sizeof(p->auth_reply))
 			return;
 
 		p->in_auth_reply = TRUE;
@@ -168,7 +168,7 @@
 		return;
 
 	/* reply is now read */
-	if (!handle_request(p, &p->auth_reply, data))
+	if (!handle_reply(p, &p->auth_reply, data))
 		auth_process_destroy(p);
 	else {
 		p->in_auth_reply = FALSE;




More information about the dovecot-cvs mailing list