mod_sofia: do not set route_uri unless there is actually one to go to.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13952 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
ceb7803179
commit
f68a0016d5
|
@ -4163,11 +4163,6 @@ sofia_destination_t* sofia_glue_get_destination(char *data)
|
||||||
} while ((--p > route_uri) && *p == ' ');
|
} while ((--p > route_uri) && *p == ' ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
if(!(route_uri = strdup(contact))) {
|
|
||||||
goto mem_fail;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!(to = strdup(data))) {
|
if (!(to = strdup(data))) {
|
||||||
goto mem_fail;
|
goto mem_fail;
|
||||||
|
|
Loading…
Reference in New Issue