Commit 0dccf4e8 0dccf4e803cb3910770a7a26ccb38926706027d3 by Frederic Gobry

fixed cache handling during address concatenation

1 parent 7b59a171
1 2002-11-25 Frederic Gobry <frederic.gobry@smartdata.ch>
2
3 * mailbox/address.c (address_concatenate): cleanup the address
4 cache during concatenation.
5
1 2002-11-25 Sergey Poznyakoff 6 2002-11-25 Sergey Poznyakoff
2 7
3 * mail.local/main.c (deliver): Bugfix: n and isize were not 8 * mail.local/main.c (deliver): Bugfix: n and isize were not
......
...@@ -171,8 +171,16 @@ address_concatenate (address_t to, address_t * from) ...@@ -171,8 +171,16 @@ address_concatenate (address_t to, address_t * from)
171 to->next = *from; 171 to->next = *from;
172 *from = NULL; 172 *from = NULL;
173 173
174 /* discard the current string cache as it is now inaccurate */
175 if (to->addr)
176 {
177 free (to->addr);
178 to->addr = NULL;
179 }
180
174 to = to->next; 181 to = to->next;
175 182
183 /* only the first address must have a cache */
176 if (to->addr) 184 if (to->addr)
177 { 185 {
178 free (to->addr); 186 free (to->addr);
......