dovecot-2.0: anvil: Disconnect client if it sends invalid input.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 20 09:46:47 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/e51089454ab0
changeset: 10777:e51089454ab0
user: Timo Sirainen <tss at iki.fi>
date: Sat Feb 20 09:27:33 2010 +0200
description:
anvil: Disconnect client if it sends invalid input.
diffstat:
src/anvil/anvil-connection.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r e71eb3faa075 -r e51089454ab0 src/anvil/anvil-connection.c
--- a/src/anvil/anvil-connection.c Sat Feb 20 09:24:48 2010 +0200
+++ b/src/anvil/anvil-connection.c Sat Feb 20 09:27:33 2010 +0200
@@ -159,8 +159,11 @@
while ((args = anvil_connection_next_line(conn)) != NULL) {
if (args[0] != NULL) {
- if (anvil_connection_request(conn, args, &error) < 0)
+ if (anvil_connection_request(conn, args, &error) < 0) {
i_error("Anvil client input error: %s", error);
+ anvil_connection_destroy(conn);
+ break;
+ }
}
}
}
More information about the dovecot-cvs
mailing list