From: Mark Spencer Date: Thu, 25 Nov 2004 03:19:18 +0000 (+0000) Subject: Small chan_features patch (bug #2939) X-Git-Tag: 1.2.0-beta1~1754 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7bc4fa3d7b087be1b5e7257281a5643908dd306;p=thirdparty%2Fasterisk.git Small chan_features patch (bug #2939) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4331 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_features.c b/channels/chan_features.c index 7c823e7861..5fa1b03a63 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; }