[dovecot-cvs] dovecot/src/master login-process.c, 1.73.2.15, 1.73.2.16 ssl-init-openssl.c, 1.6.2.2, 1.6.2.3

tss at dovecot.org tss at dovecot.org
Fri Jan 26 13:58:42 UTC 2007


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

Modified Files:
      Tag: branch_1_0
	login-process.c ssl-init-openssl.c 
Log Message:
Cleanups and minor fixes



Index: login-process.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/login-process.c,v
retrieving revision 1.73.2.15
retrieving revision 1.73.2.16
diff -u -d -r1.73.2.15 -r1.73.2.16
--- login-process.c	4 Nov 2006 12:05:11 -0000	1.73.2.15
+++ login-process.c	26 Jan 2007 13:58:37 -0000	1.73.2.16
@@ -246,7 +246,7 @@
 {
 	struct login_group *group;
 	const char *name, *proto;
-	char buf[256];
+	unsigned char buf[256];
 	enum mail_protocol protocol;
 	unsigned int len;
 	ssize_t ret;

Index: ssl-init-openssl.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/ssl-init-openssl.c,v
retrieving revision 1.6.2.2
retrieving revision 1.6.2.3
diff -u -d -r1.6.2.2 -r1.6.2.3
--- ssl-init-openssl.c	31 May 2006 13:59:13 -0000	1.6.2.2
+++ ssl-init-openssl.c	26 Jan 2007 13:58:38 -0000	1.6.2.3
@@ -66,7 +66,8 @@
 	for (i = 0; i < DH_PARAM_BITSIZE_COUNT; i++)
 		generate_dh_parameters(dh_param_bitsizes[i], fd, fname);
 	bits = 0;
-	write_full(fd, &bits, sizeof(bits));
+	if (write_full(fd, &bits, sizeof(bits)) < 0)
+		i_fatal("write_full() failed for file %s: %m", fname);
 }
 
 #endif



More information about the dovecot-cvs mailing list