From: David Vossel Date: Wed, 2 Dec 2009 19:03:01 +0000 (+0000) Subject: fixes app_queue ao2 error X-Git-Tag: 1.4.28-rc1~11^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9482a6da39ab05be604668a6d7088832ec587781;p=thirdparty%2Fasterisk.git fixes app_queue ao2 error (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 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 11b4a9b9bc..763f88f3a5 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -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. */