dovecot-2.2: uri-util: Improved authority 'host' parse error.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Sep 18 23:24:48 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/9bf25c18ad33
changeset: 16767:9bf25c18ad33
user: Stephan Bosch <stephan at rename-it.nl>
date: Wed Sep 18 23:24:22 2013 +0300
description:
uri-util: Improved authority 'host' parse error.
diffstat:
src/lib/uri-util.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 8442a0dc44b7 -r 9bf25c18ad33 src/lib/uri-util.c
--- a/src/lib/uri-util.c Wed Sep 18 23:24:11 2013 +0300
+++ b/src/lib/uri-util.c Wed Sep 18 23:24:22 2013 +0300
@@ -543,7 +543,10 @@
/* host */
if ((ret = uri_parse_host(parser, auth)) <= 0) {
if (ret == 0) {
- parser->error = "Missing 'host' component";
+ if (p == parser->end || *p == ':' || *p == '/')
+ parser->error = "Missing 'host' component";
+ else
+ parser->error = "Invalid 'host' component";
return -1;
}
return ret;
More information about the dovecot-cvs
mailing list