Module: kamailio Branch: 4.4 Commit: 4844facff6b6ae66d7d1d9abd3c45bd470d5dfdc URL: https://github.com/kamailio/kamailio/commit/4844facff6b6ae66d7d1d9abd3c45bd4...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2017-02-15T12:59:57+01:00
sanity: reset proxy_require hdr parsed field after freeing
(cherry picked from commit 06e219158131c2397a96bf5d3373c96752d7fd20) (cherry picked from commit 51949e50e0308c9ec41cd95bfe2be3d64e24802d)
---
Modified: modules/sanity/sanity.c
---
Diff: https://github.com/kamailio/kamailio/commit/4844facff6b6ae66d7d1d9abd3c45bd4... Patch: https://github.com/kamailio/kamailio/commit/4844facff6b6ae66d7d1d9abd3c45bd4...
---
diff --git a/modules/sanity/sanity.c b/modules/sanity/sanity.c index 8140c07..5812190 100644 --- a/modules/sanity/sanity.c +++ b/modules/sanity/sanity.c @@ -724,6 +724,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