dovecot-2.2: lib: Added assert to Solaris sendfile() return value.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Sep 7 22:21:55 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/f6dd24658fb1
changeset: 19123:f6dd24658fb1
user: Timo Sirainen <tss at iki.fi>
date: Tue Sep 08 01:20:51 2015 +0300
description:
lib: Added assert to Solaris sendfile() return value.
diffstat:
src/lib/sendfile-util.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r b8f09586ab33 -r f6dd24658fb1 src/lib/sendfile-util.c
--- a/src/lib/sendfile-util.c Tue Sep 08 00:51:30 2015 +0300
+++ b/src/lib/sendfile-util.c Tue Sep 08 01:20:51 2015 +0300
@@ -127,6 +127,7 @@
}
}
*offset = (uoff_t)s_offset;
+ i_assert(ret < 0 || (size_t)ret <= count);
return ret;
}
More information about the dovecot-cvs
mailing list