[sr-dev] git:3.1: module/pdb: Cleared event for poll() that was left uncleared

Marius Zbihlei marius.zbihlei at 1and1.ro
Tue Feb 15 17:47:16 CET 2011


Module: sip-router
Branch: 3.1
Commit: e914f97b4729bfe15215ba4a2ac53640644343c2
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e914f97b4729bfe15215ba4a2ac53640644343c2

Author: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Date:   Tue Feb 15 18:44:56 2011 +0200

module/pdb: Cleared event for poll() that was left uncleared

---

 modules/pdb/pdb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/pdb/pdb.c b/modules/pdb/pdb.c
index b5ceb65..8ad6f90 100644
--- a/modules/pdb/pdb.c
+++ b/modules/pdb/pdb.c
@@ -273,6 +273,7 @@ static int pdb_query(struct sip_msg *_msg, struct multiparam_t *_number, struct
 					buf[NETBUFSIZE] = '\0';
 					if (strncmp(buf, number.s, number.len) == 0) {
 						carrierid=ntohs(*((short int *)&(buf[reqlen]))); /* convert to host byte order */
+						server_list->fds[i].revents = 0; /* clear event for respoding server */
 						goto found;
 					}
 				}




More information about the sr-dev mailing list