[sr-dev] git:4.4:4844facf: sanity: reset proxy_require hdr parsed field after freeing

Daniel-Constantin Mierla miconda at gmail.com
Wed Feb 15 13:01:43 CET 2017


Module: kamailio
Branch: 4.4
Commit: 4844facff6b6ae66d7d1d9abd3c45bd470d5dfdc
URL: https://github.com/kamailio/kamailio/commit/4844facff6b6ae66d7d1d9abd3c45bd470d5dfdc

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/4844facff6b6ae66d7d1d9abd3c45bd470d5dfdc.diff
Patch: https://github.com/kamailio/kamailio/commit/4844facff6b6ae66d7d1d9abd3c45bd470d5dfdc.patch

---

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




More information about the sr-dev mailing list