]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fixed __ao2_ref() validating user_data twice.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 1 May 2012 23:11:53 +0000 (23:11 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 1 May 2012 23:11:53 +0000 (23:11 +0000)
(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

main/astobj2.c

index f11544b4345b6c9c7f9a79576def657a6aa02222..1f936b5bbd804ed95b489b1f88e8270eb8250456 100644 (file)
@@ -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);
 }