- fix: in some configurations incoming requests could

be sent to a wrong port number.
This commit is contained in:
Thomas Ries 2004-06-27 21:35:54 +00:00
parent cb3b166913
commit 31f59d1870
2 changed files with 9 additions and 4 deletions

View File

@ -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

View File

@ -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);