From: Russell Bryant Date: Mon, 18 May 2009 12:57:46 +0000 (+0000) Subject: Don't try to unlock a bogus channel. X-Git-Tag: 1.4.26~103 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=85483848d0343e54c235263450a7729ca432eb50;p=thirdparty%2Fasterisk.git Don't try to unlock a bogus channel. (closes issue #15144) Reported by: cristiandimache git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@195020 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/manager.c b/main/manager.c index d548745479..93fcd5a349 100644 --- a/main/manager.c +++ b/main/manager.c @@ -1550,6 +1550,7 @@ static int action_getvar(struct mansession *s, const struct message *m) if (c) { ast_func_read(c, copy, workspace, sizeof(workspace)); ast_channel_free(c); + c = NULL; } else ast_log(LOG_ERROR, "Unable to allocate bogus channel for variable substitution. Function results may be blank.\n"); } else