changeset 1106:d981ebb3a155 HEAD

cleanups
author Timo Sirainen <tss@iki.fi>
date Sat, 08 Feb 2003 11:31:00 +0200
parents 02454eee1775
children 4044c2903ed7
files src/master/auth-process.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/master/auth-process.c	Sat Feb 08 11:11:54 2003 +0200
+++ b/src/master/auth-process.c	Sat Feb 08 11:31:00 2003 +0200
@@ -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;