diff options
author | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-26 19:22:55 +0000 |
---|---|---|
committer | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-26 19:22:55 +0000 |
commit | 9d02cc530e4edea7dfa006a4d2947dbfbd99f99e (patch) | |
tree | 8033a906511f8aa1d9db2801ec09eda613378cd7 /apps | |
parent | d4b7fe34ee75fd8ffd3cac35f87850adf8578a0b (diff) |
Merged revisions 22596 via svnmerge from
https://svn.digium.com/svn/asterisk/branches/1.2
........
r22596 | mogorman | 2006-04-26 14:18:55 -0500 (Wed, 26 Apr 2006) | 3 lines
do not allow for users to forward voicemail to
themselves, patch from 7001
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22597 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 659bd27d3..f478e8fb9 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -3426,8 +3426,8 @@ static int forward_message(struct ast_channel *chan, char *context, char *dir, i /* start optimistic */ valid_extensions = 1; while (s) { - /* find_user is going to ast_malloc since we have a NULL as first argument */ - if ((receiver = find_user(NULL, context, s))) { + /* Don't forward to ourselves. find_user is going to malloc since we have a NULL as first argument */ + if (strcmp(s,sender->mailbox) && (receiver = find_user(NULL, context, s))) { AST_LIST_INSERT_HEAD(&extensions, receiver, list); found++; } else { |