Module: sip-router
Branch: master
Commit: f619a813ef46c76dd25c50b86f8af6cd768ac38f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f619a81…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Apr 21 21:50:17 2014 +0200
mi_rpc: don't access fields in structure after free in mi_rpc_async_close()
---
modules/mi_rpc/mi_rpc_mod.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/mi_rpc/mi_rpc_mod.c b/modules/mi_rpc/mi_rpc_mod.c
index 7a9bd77..c1a6f2a 100644
--- a/modules/mi_rpc/mi_rpc_mod.c
+++ b/modules/mi_rpc/mi_rpc_mod.c
@@ -323,8 +323,8 @@ static void mi_rpc_async_close(struct mi_root* mi_rpl,
if (dctx==0){
BUG("null dctx\n");
shm_free(mi_h->param);
- shm_free(mi_h);
mi_h->param=0;
+ shm_free(mi_h);
goto error;
}
mode=((struct mi_rpc_handler_param*)mi_h->param)->mode;