diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-07-23 05:20:59 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-07-23 05:20:59 +0000 |
commit | 4103a6d8d744e30c5ee231b1a1bf18d0a57008ea (patch) | |
tree | 2e6af81a8490a400cc4022d1ddabc23657177927 /apps | |
parent | ee4c121dec66c4db474b6add83fe6d093e16f566 (diff) |
fix a seg fault in this application if no context paramater is given
(issue #7571)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_directed_pickup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_directed_pickup.c b/apps/app_directed_pickup.c index 55001abcb..c79bad26f 100644 --- a/apps/app_directed_pickup.c +++ b/apps/app_directed_pickup.c @@ -83,7 +83,7 @@ static int pickup_exec(struct ast_channel *chan, void *data) *context++ = '\0'; /* If the context is the pickup mark, iterate through all channels finding the right origin one */ - if (!strcmp(context, PICKUPMARK)) { + if (context && !strcmp(context, PICKUPMARK)) { while ((origin = ast_channel_walk_locked(origin))) { if (origin) { tmp2 = pbx_builtin_getvar_helper(origin, PICKUPMARK); |