dovecot-2.2: lib: fd_read() didn't check the msg.msg_controllen ...

dovecot at dovecot.org dovecot at dovecot.org
Thu May 8 11:35:21 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/bedecd5b6bab
changeset: 17356:bedecd5b6bab
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 08 14:34:39 2014 +0300
description:
lib: fd_read() didn't check the msg.msg_controllen size correctly

diffstat:

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

diffs (12 lines):

diff -r de99b926a9ad -r bedecd5b6bab src/lib/fdpass.c
--- a/src/lib/fdpass.c	Tue May 06 12:44:38 2014 +0300
+++ b/src/lib/fdpass.c	Thu May 08 14:34:39 2014 +0300
@@ -143,7 +143,7 @@
 #ifdef __osf__
 #  define CHECK_MSG(msg) TRUE /* Tru64 */
 #else
-#  define CHECK_MSG(msg) (msg).msg_controllen >= CMSG_SPACE(sizeof(int))
+#  define CHECK_MSG(msg) ((msg).msg_controllen >= CMSG_SPACE(sizeof(int)))
 #endif
 
 #ifdef LINUX20


More information about the dovecot-cvs mailing list