bind/dlz-dollarvar.patch

22 lines
666 B
Diff

https://bugs.launchpad.net/ubuntu/+source/bind9/+bug/227344
LDAP API does not like %.
--- bind-9.6.1P1/contrib/dlz/drivers/sdlz_helper.c.orig
+++ bind-9.6.1P1/contrib/dlz/drivers/sdlz_helper.c
@@ -166,12 +166,12 @@ build_querylist(isc_mem_t *mctx, const c
ISC_LIST_APPEND(*tql, tseg, link);
/*
- * split string at the first "%". set query segment to
+ * split string at the first "$". set query segment to
* left portion
*/
tseg->sql = isc_mem_strdup(mctx,
isc_string_separate(&right_str,
- "%"));
+ "$"));
if (tseg->sql == NULL) {
/* no memory, clean everything up. */
result = ISC_R_NOMEMORY;