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

nta.c: copying provided tag in nta_incoming_tag()

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);
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