mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 13:58:32 +00:00
Tue May 12 13:17:07 CDT 2009 Pekka Pessi <first.last@nokia.com>
* nta.c: check input in nta_leg_by_uri() Ignore-this: f149ac04b5e1bf078c3b00e837738301 Coverity issue. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13330 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
1a9705a7b6
commit
9a38d3da7d
2 files changed
+7
-7
No files matched your search
@@ -4899,7 +4899,7 @@ nta_leg_t *leg_find(nta_agent_t const *sa,
|
||||
nta_leg_t *nta_leg_by_uri(nta_agent_t const *agent, url_string_t const *us)
|
||||
{
|
||||
url_t *url;
|
||||
nta_leg_t *leg;
|
||||
nta_leg_t *leg = NULL;
|
||||
|
||||
if (!agent)
|
||||
return NULL;
|
||||
@@ -4909,11 +4909,11 @@ nta_leg_t *nta_leg_by_uri(nta_agent_t const *agent, url_string_t const *us)
|
||||
|
||||
url = url_hdup(NULL, us->us_url);
|
||||
|
||||
agent_aliases(agent, url, NULL);
|
||||
|
||||
leg = url ? dst_find(agent, url, NULL) : NULL;
|
||||
|
||||
su_free(NULL, url);
|
||||
if (url) {
|
||||
agent_aliases(agent, url, NULL);
|
||||
leg = dst_find(agent, url, NULL);
|
||||
su_free(NULL, url);
|
||||
}
|
||||
|
||||
return leg;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user