mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Small chan_features patch (bug #2939)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -427,7 +427,7 @@ static struct ast_channel *features_request(const char *type, int format, void *
|
||||
struct feature_pvt *p;
|
||||
struct ast_channel *chan = NULL;
|
||||
p = features_alloc(data, format);
|
||||
if (!p->subs[SUB_REAL].owner)
|
||||
if (p && !p->subs[SUB_REAL].owner)
|
||||
chan = features_new(p, AST_STATE_DOWN, SUB_REAL);
|
||||
return chan;
|
||||
}
|
||||
|
Reference in New Issue
Block a user