|
@@ -932,6 +932,7 @@ error00:
|
|
|
if (faked_req->dst_uri.s) {
|
|
|
pkg_free(faked_req->dst_uri.s);
|
|
|
faked_req->dst_uri.s = 0;
|
|
|
+ faked_req->dst_uri.len = 0;
|
|
|
}
|
|
|
error01:
|
|
|
return 0;
|
|
@@ -975,6 +976,9 @@ void free_faked_req(struct sip_msg *faked_req, struct cell *t)
|
|
|
faked_req->body->free(&faked_req->body);
|
|
|
faked_req->body = 0;
|
|
|
}
|
|
|
+ /* free sip_msg_t fileds that can be set in pkg */
|
|
|
+ reset_path_vector(faked_req);
|
|
|
+ reset_instance(faked_req);
|
|
|
}
|
|
|
|
|
|
|