- fix: in some configurations incoming requests could
be sent to a wrong port number.
This commit is contained in:
parent
cb3b166913
commit
31f59d1870
@ -1,3 +1,8 @@
|
||||
0.5.8
|
||||
=====
|
||||
27-Jun-2004: - fix: in some configurations incoming requests could
|
||||
be sent to a wrong port number.
|
||||
|
||||
0.5.7
|
||||
=====
|
||||
24-Jun-2004: - Released 0.5.7
|
||||
|
||||
@ -1267,8 +1267,8 @@ int proxy_rewrite_request_uri(osip_message_t *mymsg, int idx){
|
||||
url=osip_message_get_uri(mymsg);
|
||||
|
||||
/* set the true host */
|
||||
if(urlmap[idx].true_url->host) {
|
||||
osip_free(url->host);url->host=NULL;
|
||||
if (url->host) osip_free(url->host);url->host=NULL;
|
||||
if (urlmap[idx].true_url->host) {
|
||||
DEBUGC(DBCLASS_BABBLE,"proxy_rewrite_request_uri: host=%s",
|
||||
urlmap[idx].true_url->host);
|
||||
host = (char *)malloc(strlen(urlmap[idx].true_url->host)+1);
|
||||
@ -1278,8 +1278,8 @@ int proxy_rewrite_request_uri(osip_message_t *mymsg, int idx){
|
||||
}
|
||||
|
||||
/* set the true port */
|
||||
if(urlmap[idx].true_url->port) {
|
||||
osip_free(url->port);url->port=NULL;
|
||||
if (url->port) osip_free(url->port);url->port=NULL;
|
||||
if (urlmap[idx].true_url->port) {
|
||||
DEBUGC(DBCLASS_BABBLE,"proxy_rewrite_request_uri: port=%s",
|
||||
urlmap[idx].true_url->port);
|
||||
port = (char *)malloc(strlen(urlmap[idx].true_url->port)+1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user