[dovecot-cvs] dovecot/src/master auth-process.c,1.11,1.12

cras at procontrol.fi cras at procontrol.fi
Wed Nov 27 02:21:43 EET 2002


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

Modified Files:
	auth-process.c 
Log Message:
added assert.



Index: auth-process.c
===================================================================
RCS file: /home/cvs/dovecot/src/master/auth-process.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- auth-process.c	26 Nov 2002 20:04:08 -0000	1.11
+++ auth-process.c	27 Nov 2002 00:21:41 -0000	1.12
@@ -202,8 +202,10 @@
 	(void)unlink(path);
         (void)umask(0177); /* we want 0600 mode for the socket */
 	listen_fd = net_listen_unix(path);
-	if (listen_fd == -1)
+	if (listen_fd < 0)
 		i_fatal("Can't listen in UNIX socket %s: %m", path);
+
+	i_assert(listen_fd > 2);
 
 	/* set correct permissions */
 	(void)chown(path, set_login_uid, set_login_gid);




More information about the dovecot-cvs mailing list