Module: sip-router
Branch: master
Commit: 9bf4fbf979cff6a200c0407271ae3450af3d0b8e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9bf4fbf…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Wed May 30 11:07:11 2012 +0300
modules/lcr: fixed bug in freeing rule_id_hash_table
- Indexing of rule_id_hash_table went too far by one.
---
modules/lcr/hash.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/lcr/hash.c b/modules/lcr/hash.c
index 5190830..e5b6f8a 100644
--- a/modules/lcr/hash.c
+++ b/modules/lcr/hash.c
@@ -226,7 +226,7 @@ void rule_id_hash_table_contents_free()
if (rule_id_hash_table == 0)
return;
- for (i = 0; i <= lcr_rule_hash_size_param; i++) {
+ for (i = 0; i < lcr_rule_hash_size_param; i++) {
r = rule_id_hash_table[i];
while (r) {
next_r = r->next;