Module: kamailio
Branch: master
Commit: 06e219158131c2397a96bf5d3373c96752d7fd20
URL:
https://github.com/kamailio/kamailio/commit/06e219158131c2397a96bf5d3373c96…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-02-15T12:53:59+01:00
sanity: reset proxy_require hdr parsed field after freeing
---
Modified: src/modules/sanity/sanity.c
---
Diff:
https://github.com/kamailio/kamailio/commit/06e219158131c2397a96bf5d3373c96…
Patch:
https://github.com/kamailio/kamailio/commit/06e219158131c2397a96bf5d3373c96…
---
diff --git a/src/modules/sanity/sanity.c b/src/modules/sanity/sanity.c
index 9a791c1..0ab5792 100644
--- a/src/modules/sanity/sanity.c
+++ b/src/modules/sanity/sanity.c
@@ -704,6 +704,7 @@ int check_proxy_require(struct sip_msg* _msg) {
* freed when the message freed. Lets hope nobody needs to access
* this header again later on */
free_str_list(_msg->proxy_require->parsed);
+ _msg->proxy_require->parsed = NULL;
}
}
#ifdef EXTRA_DEBUG