Module: sip-router
Branch: master
Commit: 3d6570ce356247813d28939c90a899222cdd1719
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3d6570c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Apr 10 19:55:25 2012 +0200
db_cluster: allow empty array in a priority slot
---
modules_k/db_cluster/dbcl_api.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules_k/db_cluster/dbcl_api.c b/modules_k/db_cluster/dbcl_api.c
index 9f79f35..a081009 100644
--- a/modules_k/db_cluster/dbcl_api.c
+++ b/modules_k/db_cluster/dbcl_api.c
@@ -50,6 +50,7 @@
ret = -1;\
for(i=DBCL_PRIO_SIZE-1; i>0; i--)\
{\
+ if(cls->rlist[i].clen<=0) continue; \
switch(cls->rlist[i].mode) {\
case 's':\
case 'S':\
@@ -123,6 +124,7 @@
rc = 0;\
for(i=DBCL_PRIO_SIZE-1; i>0; i--)\
{\
+ if(cls->wlist[i].clen<=0) continue; \
switch(cls->wlist[i].mode) {\
case 's':\
case 'S':\