From b960032856d5029aa4842c228bba3083eab114c5 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Tue, 1 May 2012 23:14:12 +0000 Subject: [PATCH] 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 ........ Merged revisions 364902 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@364903 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/astobj2.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/main/astobj2.c b/main/astobj2.c index 8066c9e59e..0c0037b7b1 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); } -- 2.47.2