diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-17 22:29:56 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-17 22:29:56 +0000 |
commit | 7556c359deb61cff0d0c961ec30e87fed60e3a3f (patch) | |
tree | 3c8de4504263a789ac217dea99da3ffd15f12ba1 /main/utils.c | |
parent | 94f8240f7090026e9cd19955047eb123a996dda2 (diff) |
Merged revisions 93377 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r93377 | file | 2007-12-17 18:28:09 -0400 (Mon, 17 Dec 2007) | 7 lines
Do not try to access information about a lock when printing out a trylock attempt. It is possible for the lock that it references to no longer be valid. This would have caused segfaults or deadlocks.
(issue #BE-263)
(closes issue #11080)
Reported by: callguy
(closes issue #11100)
Reported by: callguy
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93378 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/utils.c')
-rw-r--r-- | main/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c index 4b244c47b..2c4cef829 100644 --- a/main/utils.c +++ b/main/utils.c @@ -753,7 +753,7 @@ static char *handle_show_locks(struct ast_cli_entry *e, int cmd, struct ast_cli_ lock_info->locks[i].lock_addr, lock_info->locks[i].times_locked); - if (!lock_info->locks[i].pending) + if (!lock_info->locks[i].pending || lock_info->locks[i].pending == -1) continue; /* We only have further details for mutexes right now */ |