[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sr-dev
Subject:    [sr-dev] git:pd/outbound: modules_k/outbound: Corrected check on flow_token_key length
From:       Peter Dunkley <peter.dunkley () crocodile-rcs ! com>
Date:       2012-12-31 17:11:21
Message-ID: 20121231171121.1E1BAEF807B () rimmer ! ryngle ! com
[Download RAW message or body]

Module: sip-router
Branch: pd/outbound
Commit: 72d8e454f29174673cc80f9795ac8d564c2ca1bb
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=72d8e454f29174673cc80f9795ac8d564c2ca1bb


Author: Peter Dunkley <peter.dunkley@crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley@crocodile-rcs.com>
Date:   Mon Dec 31 17:11:14 2012 +0000

modules_k/outbound: Corrected check on flow_token_key length

---

 modules_k/outbound/ob_mod.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/modules_k/outbound/ob_mod.c b/modules_k/outbound/ob_mod.c
index 7234044..ff5e072 100644
--- a/modules_k/outbound/ob_mod.c
+++ b/modules_k/outbound/ob_mod.c
@@ -93,6 +93,13 @@ static int mod_init(void)
 	else
 		ob_key.len = strlen(ob_key.s);
 
+	if (ob_key.len != 20)
+	{
+		LM_ERR("flow_token_key wrong length. Expected 20 got %d\n",
+			ob_key.len);
+		return -1;
+	}
+
 	return 0;
 }
 


_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic