Commit 0dccf4e8 0dccf4e803cb3910770a7a26ccb38926706027d3 by Frederic Gobry

fixed cache handling during address concatenation

1 parent 7b59a171
2002-11-25 Frederic Gobry <frederic.gobry@smartdata.ch>
* mailbox/address.c (address_concatenate): cleanup the address
cache during concatenation.
2002-11-25 Sergey Poznyakoff
* mail.local/main.c (deliver): Bugfix: n and isize were not
......
......@@ -171,8 +171,16 @@ address_concatenate (address_t to, address_t * from)
to->next = *from;
*from = NULL;
/* discard the current string cache as it is now inaccurate */
if (to->addr)
{
free (to->addr);
to->addr = NULL;
}
to = to->next;
/* only the first address must have a cache */
if (to->addr)
{
free (to->addr);
......