fixes iax2 show cache locking error, thanks alecdavis!
authorDavid Vossel <dvossel@digium.com>
Fri, 20 Nov 2009 22:35:54 +0000 (22:35 +0000)
committerDavid Vossel <dvossel@digium.com>
Fri, 20 Nov 2009 22:35:54 +0000 (22:35 +0000)
(closes issue #16094)
Reported by: alecdavis
Patches:
      bug16094.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis, dvossel

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@230726 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 1ef21e5..9c344cd 100644 (file)
@@ -3862,7 +3862,7 @@ static char *handle_cli_iax2_show_cache(struct ast_cli_entry *e, int cmd, struct
                }
        }
 
-       AST_LIST_LOCK(&dpcache);
+       AST_LIST_UNLOCK(&dpcache);
 
        return CLI_SUCCESS;
 }