More persistence fixes
authorMark Spencer <markster@digium.com>
Sat, 5 Mar 2005 02:54:49 +0000 (02:54 +0000)
committerMark Spencer <markster@digium.com>
Sat, 5 Mar 2005 02:54:49 +0000 (02:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5141 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index 895afa7..b003bf8 100755 (executable)
@@ -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);