aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-02-28 14:28:14 +0100
committerLeah Neukirchen <leah@vuxu.org>2019-02-28 14:28:14 +0100
commit9dfbf48be43b25681ed61669897f4ab32e50cdec (patch)
treeceb03fc193fb017d2a8dc4e77d9d127a6a38fa5f
parent3a97df9990c2a2d5cda371aefe52c8bc8b4accae (diff)
downloadmblaze-9dfbf48be43b25681ed61669897f4ab32e50cdec.tar.gz
blaze822: blaze822_addr: take care of string end in comments inside <
-rw-r--r--blaze822.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/blaze822.c b/blaze822.c
index f3b056b..ba962a8 100644
--- a/blaze822.c
+++ b/blaze822.c
@@ -229,7 +229,9 @@ blaze822_addr(char *s, char **dispo, char **addro)
s++;
while (*s && c < e && *s != '>') {
s = skip_comment(s);
- if (*s == '"') {
+ if (!*s) {
+ break;
+ } else if (*s == '"') {
// local part may be quoted, allow all
s++;
while (*s && c < e && *s != '"') {