[asterisk-commits] mmichelson: branch mmichelson/ao2_containers r140402 - /team/mmichelson/ao2_c...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 28 16:17:40 CDT 2008


Author: mmichelson
Date: Thu Aug 28 16:17:40 2008
New Revision: 140402

URL: http://svn.digium.com/view/asterisk?view=rev&rev=140402
Log:
Fix an error in hashtable_callback. It was always
returning NULL.

Deja vu


Modified:
    team/mmichelson/ao2_containers/main/astobj2_hashtable.c

Modified: team/mmichelson/ao2_containers/main/astobj2_hashtable.c
URL: http://svn.digium.com/view/asterisk/team/mmichelson/ao2_containers/main/astobj2_hashtable.c?view=diff&rev=140402&r1=140401&r2=140402
==============================================================================
--- team/mmichelson/ao2_containers/main/astobj2_hashtable.c (original)
+++ team/mmichelson/ao2_containers/main/astobj2_hashtable.c Thu Aug 28 16:17:40 2008
@@ -151,6 +151,7 @@
 			if (!(flags & OBJ_NODATA)) {	/* if must return the object, record the value */
 				/* it is important to handle this case before the unlink */
 				ao2_ref(EXTERNAL_OBJ(cur->astobj), 1);
+				ret = cur->astobj;
 			}
 
 			if (flags & OBJ_UNLINK) {	/* must unlink */




More information about the asterisk-commits mailing list