dovecot-2.2: net_getunixcred(): Fixed Solaris to use getpeerucre...

dovecot at dovecot.org dovecot at dovecot.org
Sun May 20 03:26:30 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/98fd46f8d1ab
changeset: 14377:98fd46f8d1ab
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Mar 23 13:24:34 2012 +0200
description:
net_getunixcred(): Fixed Solaris to use getpeerucred() properly.

diffstat:

 src/lib/network.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r d4cc57c8a455 -r 98fd46f8d1ab src/lib/network.c
--- a/src/lib/network.c	Fri Mar 23 12:26:50 2012 +0200
+++ b/src/lib/network.c	Fri Mar 23 13:24:34 2012 +0200
@@ -715,7 +715,7 @@
 	return 0;
 #elif defined(HAVE_GETPEERUCRED)
 	/* Solaris */
-	ucred_t *ucred;
+	ucred_t *ucred = NULL;
 
 	if (getpeerucred(fd, &ucred) < 0) {
 		i_error("getpeerucred() failed: %m");


More information about the dovecot-cvs mailing list