[dovecot-cvs] dovecot/src/master auth-process.c,1.64,1.65

cras at dovecot.org cras at dovecot.org
Tue Oct 19 04:17:22 EEST 2004


Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv17131/master

Modified Files:
	auth-process.c 
Log Message:
We didn't send VERSION handshake to auth process.



Index: auth-process.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/auth-process.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- auth-process.c	19 Oct 2004 00:51:22 -0000	1.64
+++ auth-process.c	19 Oct 2004 01:17:20 -0000	1.65
@@ -223,6 +223,7 @@
 auth_process_new(pid_t pid, int fd, struct auth_process_group *group)
 {
 	struct auth_process *p;
+	const char *handshake;
 
 	if (pid != 0)
 		PID_ADD_PROCESS_TYPE(pid, PROCESS_TYPE_AUTH);
@@ -238,6 +239,11 @@
 					 FALSE);
 	p->requests = hash_create(default_pool, default_pool, 0, NULL, NULL);
 
+	handshake = t_strdup_printf("VERSION\t%u.%u\n",
+				    AUTH_MASTER_PROTOCOL_MAJOR_VERSION,
+				    AUTH_MASTER_PROTOCOL_MINOR_VERSION);
+	(void)o_stream_send_str(p->output, handshake);
+
 	p->next = group->processes;
 	group->processes = p;
 	group->process_count++;



More information about the dovecot-cvs mailing list