From: Richard Mudgett Date: Tue, 1 May 2012 23:11:53 +0000 (+0000) Subject: Fixed __ao2_ref() validating user_data twice. X-Git-Tag: 1.8.13.0-rc1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a11540c95b09d4254c88bb1ffd2d9f4a9dc29fc6;p=thirdparty%2Fasterisk.git 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@364902 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/astobj2.c b/main/astobj2.c index f11544b434..1f936b5bbd 100644 --- a/main/astobj2.c +++ b/main/astobj2.c @@ -229,11 +229,6 @@ int __ao2_ref_debug(void *user_data, const int delta, char *tag, char *file, int 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); }