]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: fd_read() didn't check the msg.msg_controllen size correctly
authorTimo Sirainen <tss@iki.fi>
Thu, 8 May 2014 11:34:39 +0000 (14:34 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 8 May 2014 11:34:39 +0000 (14:34 +0300)
src/lib/fdpass.c

index 85617c31d7248a73b6fdc2c2134669ceb5af83f2..38e910b33a78cb2885c1d568f2e3b401bd9311e7 100644 (file)
@@ -143,7 +143,7 @@ ssize_t fd_send(int handle, int send_fd, const void *data, size_t size)
 #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