diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-21 17:40:07 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-21 17:40:07 +0000 |
commit | b04e99475894c12435d36b28547f5e849c85faca (patch) | |
tree | 993588f54dcb444e1eccb56eaafa0bd7aab8a767 /utils | |
parent | 6e0298ab017e49117e88db54ef83d004e814c418 (diff) |
Merged revisions 169673 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r169673 | murf | 2009-01-21 10:21:40 -0700 (Wed, 21 Jan 2009) | 14 lines
This patch corrects a segfault reported in 14289,
due to a null ptr being refd.
Yes, seanbright is right in the bug comments, that is the fix.
Sorry for this oversight; I guess my personal
usage didn't have this happen!
murf
(closes issue #14289)
Reported by: jamesgolovich
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@169674 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils')
-rw-r--r-- | utils/refcounter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/refcounter.c b/utils/refcounter.c index 4712c26b6..d49cf4712 100644 --- a/utils/refcounter.c +++ b/utils/refcounter.c @@ -156,7 +156,7 @@ int main(int argc,char **argv) } else { /* NO obj at ALL? -- better make one! */ if (*(t+1) != '=') { - printf("BAD: object %x appears without previous allocation marker!\n", count1_obj->addr); + printf("BAD: object %x appears without previous allocation marker!\n", un); } curr_obj = count1_obj = alloc_obj(un, 1); /* put it in the hashtable */ |