Add an appropriate goto if ast_call fails
authorMark Michelson <mmichelson@digium.com>
Thu, 11 Dec 2008 20:21:44 +0000 (20:21 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 11 Dec 2008 20:21:44 +0000 (20:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@163198 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/features.c

index 38f4540..f791340 100644 (file)
@@ -2033,6 +2033,7 @@ static struct ast_channel *ast_feature_request_and_dial(struct ast_channel *call
                
        if (ast_call(chan, data, timeout)) {
                ast_log(LOG_NOTICE, "Unable to call channel %s/%s\n", type, (char *)data);
+               goto done;
        }
        
        ast_indicate(caller, AST_CONTROL_RINGING);