aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-21 17:21:40 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-21 17:21:40 +0000
commitd95c6cc405d81745aa0bf04f65de342e8ceed8cf (patch)
tree88772699d6ea303f85749f8612c763e65445c630 /utils
parentbc2300b14267fcae0d4324d61d3e41c5ebe3b466 (diff)
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/trunk@169673 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils')
-rw-r--r--utils/refcounter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/refcounter.c b/utils/refcounter.c
index ddd5055d0..d71ebf1d8 100644
--- a/utils/refcounter.c
+++ b/utils/refcounter.c
@@ -161,7 +161,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 */