[dovecot-cvs] dovecot/src/lib-mail message-address.c,1.9,1.10

cras at dovecot.org cras at dovecot.org
Thu Jan 6 22:50:38 EET 2005


Update of /var/lib/cvs/dovecot/src/lib-mail
In directory talvi:/tmp/cvs-serv2569/lib-mail

Modified Files:
	message-address.c 
Log Message:
Allow giving data stack pool for message_address_parse()



Index: message-address.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-mail/message-address.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- message-address.c	6 Jan 2005 18:14:28 -0000	1.9
+++ message-address.c	6 Jan 2005 20:50:36 -0000	1.10
@@ -269,7 +269,8 @@
 {
 	struct message_address_parser_context ctx;
 
-	t_push();
+	if (!pool->datastack_pool)
+		t_push();
 	memset(&ctx, 0, sizeof(ctx));
 
 	rfc822_parser_init(&ctx.parser, data, size, t_str_new(128));
@@ -277,7 +278,8 @@
 	ctx.str = t_str_new(128);
 
 	(void)parse_address_list(&ctx, max_addresses);
-	t_pop();
+	if (!pool->datastack_pool)
+		t_pop();
 	return ctx.first_addr;
 }
 



More information about the dovecot-cvs mailing list