More persistence fixes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2005-03-05 02:54:49 +00:00
parent fe64d7eca6
commit 7f97f0a332
1 changed files with 1 additions and 1 deletions

View File

@ -2024,7 +2024,7 @@ static void reload_agents(void)
ast_mutex_lock(&agentlock);
for (entry = db_tree; entry; entry = entry->next) {
agent_num = db_tree->key + strlen(pa_family) + 2;
agent_num = entry->key + strlen(pa_family) + 2;
cur_agent = agents;
while (cur_agent) {
ast_mutex_lock(&cur_agent->lock);