diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-23 05:20:59 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-23 05:20:59 +0000 |
commit | ec5e68f253e0bca9e287957a5ff0d123401bc133 (patch) | |
tree | 2e6af81a8490a400cc4022d1ddabc23657177927 | |
parent | 5d15612a72c7523273ca7d47c55c6931e15a7d64 (diff) |
fix a seg fault in this application if no context paramater is given
(issue #7571)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38118 f38db490-d61c-443f-a65b-d21fe96a405b
-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); |