[asterisk-commits] rmudgett: branch 1.8 r364902 - /branches/1.8/main/astobj2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue May 1 18:11:57 CDT 2012


Author: rmudgett
Date: Tue May  1 18:11:53 2012
New Revision: 364902

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=364902
Log:
Fixed __ao2_ref() validating user_data twice.

(closes issue ASTERISK-19755)
Reported by: Gunther Kelleter
Patches:
      ao2_ref.patch (license #6372) patch uploaded by Gunther Kelleter

Modified:
    branches/1.8/main/astobj2.c

Modified: branches/1.8/main/astobj2.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/astobj2.c?view=diff&rev=364902&r1=364901&r2=364902
==============================================================================
--- branches/1.8/main/astobj2.c (original)
+++ branches/1.8/main/astobj2.c Tue May  1 18:11:53 2012
@@ -229,11 +229,6 @@
 
 int __ao2_ref(void *user_data, const int delta)
 {
-	struct astobj2 *obj = INTERNAL_OBJ(user_data);
-
-	if (obj == NULL)
-		return -1;
-
 	return internal_ao2_ref(user_data, delta);
 }
 




More information about the asterisk-commits mailing list