Module: sip-router
Branch: master
Commit: f86e6c73e6818df799ac475c499bf641b211df78
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f86e6c7…
Author: Elena-Ramona Modroiu <ramona(a)asipto.com>
Committer: Elena-Ramona Modroiu <ramona(a)asipto.com>
Date: Tue Jul 19 09:46:35 2011 +0200
mqueue: decrease number of items when size limit is reached
- proper counting of intems in the queue
- patch by Denis Chukhryaev
---
modules/mqueue/mqueue_api.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/mqueue/mqueue_api.c b/modules/mqueue/mqueue_api.c
index b6b72ef..a86d375 100644
--- a/modules/mqueue/mqueue_api.c
+++ b/modules/mqueue/mqueue_api.c
@@ -343,6 +343,7 @@ int mq_item_add(str *qname, str *key, str *val)
mh->ilast = NULL;
else
mh->ifirst->prev = NULL;
+ mh->csize--;
shm_free(mi);
}
lock_release(&mh->lock);