]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fixes app_queue ao2 error
authorDavid Vossel <dvossel@digium.com>
Wed, 2 Dec 2009 19:03:01 +0000 (19:03 +0000)
committerDavid Vossel <dvossel@digium.com>
Wed, 2 Dec 2009 19:03:01 +0000 (19:03 +0000)
(closes issue #16369)
Reported by: vrban
Patches:
      queue_issue_1.4.diff uploaded by dvossel (license 671)
Tested by: dvossel

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@232444 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 11b4a9b9bc8c8c3633d81c8e88ed5922cfef926d..763f88f3a5b8d30455af8b3c95ba6c8a15974aa1 100644 (file)
@@ -1947,7 +1947,7 @@ static int ring_entry(struct queue_ent *qe, struct callattempt *tmp, int *busies
 
                ao2_lock(qe->parent);
                qe->parent->rrpos++;
-               ao2_unlock(&qe->parent);
+               ao2_unlock(qe->parent);
 
                (*busies)++;
                return 0;
@@ -2173,7 +2173,7 @@ static void record_abandoned(struct queue_ent *qe)
                qe->parent->name, qe->chan->uniqueid, qe->pos, qe->opos, (int)(time(NULL) - qe->start));
 
        qe->parent->callsabandoned++;
-       ao2_unlock(&qe->parent);
+       ao2_unlock(qe->parent);
 }
 
 /*! \brief RNA == Ring No Answer. Common code that is executed when we try a queue member and they don't answer. */