From 93aa2e4ac76732960d38e6962b1f95d273aa4634 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 24 Mar 2009 15:38:33 +0000 Subject: [PATCH] Thu Mar 5 13:08:22 CST 2009 Pekka Pessi * nta.c: nta_leg_tag(leg, NULL) now always returns the tag (old or new) Ignore-this: f5a7d67ed90e2c284f6696d6b5b89326 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12739 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/.update | 2 +- libs/sofia-sip/libsofia-sip-ua/nta/nta.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index 2ae170a80f..e208c67c9e 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Tue Mar 24 10:36:48 CDT 2009 +Tue Mar 24 10:37:37 CDT 2009 diff --git a/libs/sofia-sip/libsofia-sip-ua/nta/nta.c b/libs/sofia-sip/libsofia-sip-ua/nta/nta.c index 7837253b80..342e94ec2c 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nta/nta.c +++ b/libs/sofia-sip/libsofia-sip-ua/nta/nta.c @@ -4391,7 +4391,7 @@ char const *nta_leg_tag(nta_leg_t *leg, char const *tag) /* If there already is a tag, return NULL if it does not match with new one */ if (leg->leg_local->a_tag) { - if (su_casematch(tag, leg->leg_local->a_tag)) + if (tag == NULL || su_casematch(tag, leg->leg_local->a_tag)) return leg->leg_local->a_tag; else return NULL;