[sr-dev] git:pd/outbound: modules_k/outbound: Corrected check on flow_token_key length

Peter Dunkley peter.dunkley at crocodile-rcs.com
Mon Dec 31 18:11:21 CET 2012


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 at crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley at 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;
 }
 




More information about the sr-dev mailing list