Fixed parsing bug.
This commit is contained in:
parent
55f89a924d
commit
08f3fb4045
@ -140,7 +140,7 @@ rfc822_decomment(const char * source /* String containing a formatted rfc822 ad
|
|||||||
assert(source != NULL);
|
assert(source != NULL);
|
||||||
if (!source || *source == '\0') {
|
if (!source || *source == '\0') {
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
return NULL;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Allocate buffer. */
|
/* Allocate buffer. */
|
||||||
@ -197,7 +197,7 @@ rfc822_decomment(const char * source /* String containing a formatted rfc822 ad
|
|||||||
angel_bracket_count--;
|
angel_bracket_count--;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (!in_quote && *s == '\\') {
|
else if (*s == '\\') {
|
||||||
if (s[1] != '\0') {
|
if (s[1] != '\0') {
|
||||||
*p++ = *s++;
|
*p++ = *s++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user