aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/res_features.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_features.c b/res/res_features.c
index 2161f2446..317b99b5f 100644
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -555,7 +555,8 @@ static int masq_park_call(struct ast_channel *rchan, struct ast_channel *peer, i
int park_status;
if ((pu = park_space_reserve(rchan)) == NULL) {
- ast_stream_and_wait(peer, "beeperr", peer->language, "");
+ if (peer)
+ ast_stream_and_wait(peer, "beeperr", peer->language, "");
return FEATURE_RETURN_PARKFAILED;
}