Explorar o código

sanity: reset proxy_require hdr parsed field after freeing

Daniel-Constantin Mierla %!s(int64=8) %!d(string=hai) anos
pai
achega
06e2191581
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/modules/sanity/sanity.c

+ 1 - 0
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