Browse code

route set duplicated into shm

Jan Janak authored on 07/04/2003 11:51:01
Showing 1 changed files
... ...
@@ -213,7 +213,7 @@ static inline int get_route_set(struct sip_msg* _m, rr_t** _rs, unsigned char _o
213 213
 
214 214
 			p = (rr_t*)ptr->parsed;
215 215
 			while(p) {
216
-				if (duplicate_rr(_m, &t, p) < 0) {
216
+				if (shm_duplicate_rr(_m, &t, p) < 0) {
217 217
 					LOG(L_ERR, "get_route_set(): Error while duplicating rr_t\n");
218 218
 					goto error;
219 219
 				}
... ...
@@ -237,7 +237,7 @@ static inline int get_route_set(struct sip_msg* _m, rr_t** _rs, unsigned char _o
237 237
 	return 0;
238 238
 
239 239
  error:
240
-        free_rr(_rs);
240
+        shm_free_rr(_rs);
241 241
 	return -1;
242 242
 }
243 243
 
... ...
@@ -703,7 +703,7 @@ void free_dlg(dlg_t* _d)
703 703
 	if (_d->rem_target.s) shm_free(_d->rem_target.s);
704 704
 
705 705
 	     /* Free all routes in the route set */
706
-	free_rr(&_d->route_set);
706
+	shm_free_rr(&_d->route_set);
707 707
 	shm_free(_d);
708 708
 }
709 709