Small chan_features patch (bug #2939)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Mark Spencer 21 years ago
parent 8c42a49ec8
commit e7bc4fa3d7

@ -427,7 +427,7 @@ static struct ast_channel *features_request(const char *type, int format, void *
struct feature_pvt *p; struct feature_pvt *p;
struct ast_channel *chan = NULL; struct ast_channel *chan = NULL;
p = features_alloc(data, format); 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); chan = features_new(p, AST_STATE_DOWN, SUB_REAL);
return chan; return chan;
} }

Loading…
Cancel
Save