git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Gnu/Hurd: revert pipe-i/o EINTR handling changes
[exim.git]
/
src
/
src
/
auths
/
dovecot.c
diff --git
a/src/src/auths/dovecot.c
b/src/src/auths/dovecot.c
index 9c0c9b3133d261c95b4e4c3a595fced220da09d2..4628863e0cc09714f7cec16024d21b6989e595a0 100644
(file)
--- a/
src/src/auths/dovecot.c
+++ b/
src/src/auths/dovecot.c
@@
-215,8
+215,8
@@
for (;;)
{
if (socket_buffer_left == 0)
{
{
if (socket_buffer_left == 0)
{
- socket_buffer_left = read(fd, sbuffer, sizeof(sbuffer));
- if (socket_buffer_left == 0) { if (count == 0) return NULL; else break; }
+ if ((socket_buffer_left = read(fd, sbuffer, sizeof(sbuffer))) <= 0)
+ if (count == 0) return NULL; else break;
p = 0;
}
p = 0;
}