[sr-dev] git:master: Fixed potential bug in exceptional condition when max-time updated is called

Carlos Ruiz Diaz carlos.ruizdiaz at gmail.com
Mon Sep 2 01:58:18 CEST 2013


Module: sip-router
Branch: master
Commit: 7e44ff0be6cbb48c9360bee8601ec3dbff050c02
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7e44ff0be6cbb48c9360bee8601ec3dbff050c02

Author: Carlos Ruiz Diaz <carlos.ruizdiaz at gmail.com>
Committer: Carlos Ruiz Diaz <carlos.ruizdiaz at gmail.com>
Date:   Sun Sep  1 19:56:57 2013 -0400

Fixed potential bug in exceptional condition when max-time updated is called

---

 modules/cnxcc/cnxcc_mod.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/cnxcc/cnxcc_mod.c b/modules/cnxcc/cnxcc_mod.c
index 9a85eda..808df1f 100644
--- a/modules/cnxcc/cnxcc_mod.c
+++ b/modules/cnxcc/cnxcc_mod.c
@@ -1817,7 +1817,7 @@ static int update_max_time(struct sip_msg* msg, char* str_pv_client, char* str_p
 
 	if (e == NULL)
 	{
-		LM_ERR("Client [%.*s] was not found\n", e->key.len, e->key.s);
+		LM_ERR("Client [%.*s] was not found\n", client_id_val.rs.len, client_id_val.rs.s);
 		return -1;
 	}
 		




More information about the sr-dev mailing list