Commit 78b9d521 authored by Pekka Pessi's avatar Pekka Pessi

nta.c: copying provided tag in nta_incoming_tag()

darcs-hash:20061024063910-65a35-2cc6f93dee782818e0bfda79f36ff5b8cd325f51.gz
parent 5fd74a90
......@@ -4725,9 +4725,14 @@ char const *nta_incoming_tag(nta_incoming_t *irq, char const *tag)
return NULL;
if (!irq->irq_tag) {
if (tag == NULL)
if (tag)
tag = su_strdup(irq->irq_home, tag);
else
tag = nta_agent_newtag(irq->irq_home, NULL, irq->irq_agent);
if (!tag)
return tag;
irq->irq_tag = tag;
irq->irq_tag_set = 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment