Let's unlock the lines list after the AST_LIST_TRAVERSE instead of inside it.
authorMichiel van Baak <michiel@vanbaak.info>
Fri, 4 Dec 2009 16:55:07 +0000 (16:55 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Fri, 4 Dec 2009 16:55:07 +0000 (16:55 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@233089 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_skinny.c

index c7cfb15..e732148 100644 (file)
@@ -3347,8 +3347,8 @@ static char *_skinny_show_lines(int fd, int *total, struct mansession *s, const
                                l->instance,
                                l->label);
                }
                                l->instance,
                                l->label);
                }
-               AST_LIST_UNLOCK(&lines);
        }
        }
+       AST_LIST_UNLOCK(&lines);
 
        if (total) {
                *total = total_lines;
 
        if (total) {
                *total = total_lines;