[sr-dev] git:master: dispatcher: release lock instead of destroy when cleaning active calls hash table

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 4 16:32:37 CET 2013


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Mon Mar  4 16:30:34 2013 +0100

dispatcher: release lock instead of destroy when cleaning active calls hash table

- this could happen when dispatcher list was reloaded
- reported and fix by Dmitry, closes FS#275

---

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

diff --git a/modules/dispatcher/ds_ht.c b/modules/dispatcher/ds_ht.c
index 13cff0d..eddc9f0 100644
--- a/modules/dispatcher/ds_ht.c
+++ b/modules/dispatcher/ds_ht.c
@@ -170,7 +170,7 @@ int ds_ht_clear_slots(ds_ht_t *dsht)
 		}
 		dsht->entries[i].first = NULL;
 		dsht->entries[i].esize = 0;
-		lock_destroy(&dsht->entries[i].lock);
+		lock_release(&dsht->entries[i].lock);
 	}
 	return 0;
 }




More information about the sr-dev mailing list