From 1bac31d6bdcde7988dab684f053cc8fe5fafed41 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Mon, 6 Jun 2005 02:29:18 +0000 Subject: more efficient (and understandable) ast_channel_walk_locked, and vastly more efficient ast_channel_by_name_locked (bug #4265) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5853 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_softhangup.c | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/app_softhangup.c') diff --git a/apps/app_softhangup.c b/apps/app_softhangup.c index 6631b0ad7..124f270c6 100755 --- a/apps/app_softhangup.c +++ b/apps/app_softhangup.c @@ -60,6 +60,7 @@ static int softhangup_exec(struct ast_channel *chan, void *data) while (c) { strncpy(name, c->name, sizeof(name)-1); ast_mutex_unlock(&c->lock); + /* XXX watch out, i think it is wrong to access c-> after unlocking! */ if (all) { /* CAPI is set up like CAPI[foo/bar]/clcnt */ if (!strcmp(c->type,"CAPI")) -- cgit v1.2.3