Browse Source

- return value fo get_contact_uri changed

Jan Janak 22 years ago
parent
commit
f5cb1e40ff
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules/tm/dlg.c

+ 2 - 1
modules/tm/dlg.c

@@ -192,6 +192,7 @@ int new_dlg_uac(str* _cid, str* _ltag, unsigned int _lseq, str* _luri, str* _rur
 
 	if (calculate_hooks(*_d) < 0) {
 		LOG(L_ERR, "new_dlg_uac(): Error while calculating hooks\n");
+		/* FIXME: free everything here */
 		shm_free(res);
 		return -2;
 	}
@@ -210,7 +211,7 @@ static inline int get_contact_uri(struct sip_msg* _m, str* _uri)
 
 	_uri->len = 0;
 
-	if (!_m->contact) return 0;
+	if (!_m->contact) return 1;
 
 	if (parse_contact(_m->contact) < 0) {
 		LOG(L_ERR, "get_contact_uri(): Error while parsing Contact body\n");