Small chan_features patch (bug #2939)
authorMark Spencer <markster@digium.com>
Thu, 25 Nov 2004 03:19:18 +0000 (03:19 +0000)
committerMark Spencer <markster@digium.com>
Thu, 25 Nov 2004 03:19:18 +0000 (03:19 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4331 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_features.c

index 7c823e7..5fa1b03 100755 (executable)
@@ -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;
 }