diff options
author | Nigel Metheringham <nigel@exim.org> | 2009-10-26 13:18:54 +0000 |
---|---|---|
committer | Nigel Metheringham <nigel@exim.org> | 2009-10-26 13:18:54 +0000 |
commit | 51473862ca62bf14157e0d7aa957b5a0d41748be (patch) | |
tree | f9c4e93c79a5b3c91da9004f12460c1385091f01 /src | |
parent | 07af267efb085ad25e9ec81eb4c6b11364acdcd1 (diff) |
Dovecot buffer overrun fix. Fixes: #889
Diffstat (limited to 'src')
-rw-r--r-- | src/src/auths/dovecot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/src/auths/dovecot.c b/src/src/auths/dovecot.c index ff0f8469c..9893dac22 100644 --- a/src/src/auths/dovecot.c +++ b/src/src/auths/dovecot.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/auths/dovecot.c,v 1.10 2008/05/16 12:22:08 nm4 Exp $ */ +/* $Cambridge: exim/src/src/auths/dovecot.c,v 1.11 2009/10/26 13:18:54 nm4 Exp $ */ /* * Copyright (c) 2004 Andrey Panin <pazke@donpac.ru> @@ -131,6 +131,7 @@ for (;;) { sbp = read(fd, sbuffer, sizeof(sbuffer)); if (sbp == 0) { if (count == 0) return NULL; else break; } + p = 0; } while (p < sbp) |