[svn-commits] murf: trunk r169673 - /trunk/utils/refcounter.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jan 21 11:21:40 CST 2009


Author: murf
Date: Wed Jan 21 11:21:40 2009
New Revision: 169673

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=169673
Log:
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



Modified:
    trunk/utils/refcounter.c

Modified: trunk/utils/refcounter.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/utils/refcounter.c?view=diff&rev=169673&r1=169672&r2=169673
==============================================================================
--- trunk/utils/refcounter.c (original)
+++ trunk/utils/refcounter.c Wed Jan 21 11:21:40 2009
@@ -161,7 +161,7 @@
 		} 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 */




More information about the svn-commits mailing list