]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Double-unlock error (reported by blitzrage on IRC)
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 1 Dec 2006 19:38:59 +0000 (19:38 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 1 Dec 2006 19:38:59 +0000 (19:38 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48179 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cli.c

index 3d529cb86fed609a8b65827971c9c76c8257e4b8..ac1226732fd0d2005772232eb62f6f66cef3a4a8 100644 (file)
@@ -1431,7 +1431,6 @@ static int __ast_cli_register(struct ast_cli_entry *e, struct ast_cli_entry *ed)
        AST_LIST_LOCK(&helpers);
        
        if (find_cli(e->cmda, 1)) {
-               AST_LIST_UNLOCK(&helpers);
                ast_log(LOG_WARNING, "Command '%s' already registered (or something close enough)\n", fulle);
                goto done;
        }