Tue Mar 3 10:40:57 CST 2009 Pekka Pessi <first.last@nokia.com>

* nta: nta_agent_set_params() now returns correct value for tport parameters set



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12380 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-03-03 17:22:01 +00:00
parent 62fdae5055
commit 742d765b53
2 changed files with 6 additions and 5 deletions

View File

@ -1 +1 @@
Tue Mar 3 11:21:02 CST 2009
Tue Mar 3 11:21:35 CST 2009

View File

@ -1537,12 +1537,13 @@ int agent_set_params(nta_agent_t *agent, tagi_t *tags)
m = 0;
for (tport = agent->sa_tports; tport; tport = tport_next(tport)) {
m = tport_set_params(tport, TAG_NEXT(tags));
int m0 = tport_set_params(tport, TAG_NEXT(tags));
if (m0 < 0)
return m0;
if (m0 > m)
m = m0;
}
if (m == -1)
return m;
n += m;
if (aliases != NONE) {