Unless the caller explicitly cleared the parser's memory, allow_pct_nul was
somewhat random. All the code in Dovecot core did this, but some plugins
didn't.
void uri_parser_init_data(struct uri_parser *parser,
pool_t pool, const unsigned char *data, size_t size)
{
+ i_zero(parser);
parser->pool = pool;
parser->begin = parser->cur = data;
parser->end = data + size;
- parser->error = NULL;
- parser->tmpbuf = NULL;
-
}
void uri_parser_init(struct uri_parser *parser,