[SR-Dev] git:janakj/ldap: Filter query string assembling fixed

Jan Janak jan at iptel.org
Fri Feb 13 00:57:03 CET 2009


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

Author: Gergely Kovacs <gergo at iptel.org>
Committer: Gergely Kovacs <gergo at iptel.org>
Date:   Thu May 29 15:21:59 2008 +0000

Filter query string assembling fixed

---

 modules/db_ldap/ld_fld.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/db_ldap/ld_fld.c b/modules/db_ldap/ld_fld.c
index 85bdd7d..26e06c7 100644
--- a/modules/db_ldap/ld_fld.c
+++ b/modules/db_ldap/ld_fld.c
@@ -627,7 +627,7 @@ int ld_fld2ldap(char** filter, db_fld_t* fld, str* add)
 		rv |= sb_add(&buf, "(", 1);
 		lfld = DB_GET_PAYLOAD(fld + i);	
 
-		if ((fld[i].flags & DB_NULL) == 0) {
+		if (fld[i].flags & DB_NULL) {
 			rv |= sb_add(&buf, lfld->attr.s, lfld->attr.len);
 			rv |= sb_add(&buf, "=", 1);
 			goto skip;




More information about the sr-dev mailing list