diff --git a/main/features.c b/main/features.c index e8c0d50f89..182c5a2988 100644 --- a/main/features.c +++ b/main/features.c @@ -5055,7 +5055,7 @@ static int park_call_exec(struct ast_channel *chan, const char *data) /*! \brief Pickup parked call */ static int parked_call_exec(struct ast_channel *chan, const char *data) { - int res = 0; + int res; struct ast_channel *peer = NULL; struct parkeduser *pu; struct ast_context *con; @@ -5298,10 +5298,11 @@ static int parked_call_exec(struct ast_channel *chan, const char *data) } ast_verb(3, "Channel %s tried to retrieve nonexistent parked call %d\n", chan->name, park); + res = -1; } parkinglot_unref(parkinglot); - return -1; + return res; } /*!