changeset 2778:b85e7c414f06 HEAD

We didn't send VERSION handshake to auth process.
author Timo Sirainen <tss@iki.fi>
date Tue, 19 Oct 2004 04:17:20 +0300
parents dc309a440bbe
children 1fd55b4341b9
files src/master/auth-process.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/master/auth-process.c	Tue Oct 19 03:59:12 2004 +0300
+++ b/src/master/auth-process.c	Tue Oct 19 04:17:20 2004 +0300
@@ -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++;