From: Steve Murphy Date: Wed, 21 Jan 2009 17:21:40 +0000 (+0000) Subject: This patch corrects a segfault reported in 14289, X-Git-Tag: 1.6.2.0-beta1~401 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6d524741aef1851eeac5737b6c7a5aeb051878c;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/trunk@169673 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/utils/refcounter.c b/utils/refcounter.c index ddd5055d01..d71ebf1d8a 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 */