- /* duplicate address, just ignore it */
- tmp = addr;
- addr = addr->next;
- tmp->next = NULL;
- rfc822_free_address (&tmp);
- }
- else if (!tmp->next)
- {
- /* unique address. add it to the list */
- tmp->next = addr;
- addr = addr->next;
- tmp = tmp->next;
- tmp->next = NULL;
- tmp = NULL; /* so we exit the loop */