diff --git a/main/features.c b/main/features.c index 1d463d5b34..4e9459892d 100644 --- a/main/features.c +++ b/main/features.c @@ -3384,7 +3384,7 @@ static int park_exec_full(struct ast_channel *chan, void *data, struct ast_parki /* Simulate the PBX hanging up */ ast_hangup(peer); - return res; + return -1; } else { /*! \todo XXX Play a message XXX */ if (ast_stream_and_wait(chan, "pbx-invalidpark", "")) @@ -3393,7 +3393,7 @@ static int park_exec_full(struct ast_channel *chan, void *data, struct ast_parki res = -1; } - return res; + return -1; } static int park_exec(struct ast_channel *chan, void *data)