diff options
-rwxr-xr-x | channels/chan_features.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_features.c b/channels/chan_features.c index 7c823e786..5fa1b03a6 100755 --- a/channels/chan_features.c +++ b/channels/chan_features.c @@ -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; } |