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 <[email protected]>
Committer: Peter Dunkley <[email protected]>
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
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to