Browse code

- return value fo get_contact_uri changed

Jan Janak authored on 08/05/2003 01:11:42
Showing 1 changed files
... ...
@@ -192,6 +192,7 @@ int new_dlg_uac(str* _cid, str* _ltag, unsigned int _lseq, str* _luri, str* _rur
192 192
 
193 193
 	if (calculate_hooks(*_d) < 0) {
194 194
 		LOG(L_ERR, "new_dlg_uac(): Error while calculating hooks\n");
195
+		/* FIXME: free everything here */
195 196
 		shm_free(res);
196 197
 		return -2;
197 198
 	}
... ...
@@ -210,7 +211,7 @@ static inline int get_contact_uri(struct sip_msg* _m, str* _uri)
210 211
 
211 212
 	_uri->len = 0;
212 213
 
213
-	if (!_m->contact) return 0;
214
+	if (!_m->contact) return 1;
214 215
 
215 216
 	if (parse_contact(_m->contact) < 0) {
216 217
 		LOG(L_ERR, "get_contact_uri(): Error while parsing Contact body\n");