Module: kamailio
Branch: master
Commit: 18fa51b8121e34e76c9a9935ed8e168aa9a70ebc
URL:
https://github.com/kamailio/kamailio/commit/18fa51b8121e34e76c9a9935ed8e168…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-13T12:39:58+02:00
sanity: reset sanity reply info before starting the checks
---
Modified: src/modules/sanity/sanity_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/18fa51b8121e34e76c9a9935ed8e168…
Patch:
https://github.com/kamailio/kamailio/commit/18fa51b8121e34e76c9a9935ed8e168…
---
diff --git a/src/modules/sanity/sanity_mod.c b/src/modules/sanity/sanity_mod.c
index d57854639e..fc79663ba2 100644
--- a/src/modules/sanity/sanity_mod.c
+++ b/src/modules/sanity/sanity_mod.c
@@ -135,6 +135,10 @@ int sanity_check(struct sip_msg* _msg, int msg_checks, int
uri_checks)
{
int ret;
+ if(ksr_sanity_noreply!=0) {
+ ksr_sanity_info_init();
+ }
+
ret = SANITY_CHECK_PASSED;
if (SANITY_RURI_SIP_VERSION & msg_checks &&
(ret = check_ruri_sip_version(_msg)) != SANITY_CHECK_PASSED) {