]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we should use ldap_escape_func when escaping the URL 91/head
authorPhil Mayers <p.mayers@imperial.ac.uk>
Thu, 20 Sep 2012 16:24:55 +0000 (17:24 +0100)
committerPhil Mayers <p.mayers@imperial.ac.uk>
Thu, 20 Sep 2012 16:24:55 +0000 (17:24 +0100)
src/modules/rlm_ldap/rlm_ldap.c

index b382286371ecf04a157514b48b395de659d90096..92377f9f8edb6b491d21de766b5a4a93b8e539b1 100644 (file)
@@ -1214,7 +1214,8 @@ static int ldap_groupcmp(void *instance, REQUEST *req,
  * Do an xlat on an LDAP URL
  */
 static size_t ldap_xlat(void *instance, REQUEST *request, const char *fmt,
-                    char *out, size_t freespace, RADIUS_ESCAPE_STRING func)
+                    char *out, size_t freespace,
+                    UNUSED RADIUS_ESCAPE_STRING func)
 {
        char url[MAX_FILTER_STR_LEN];
        int res;
@@ -1228,7 +1229,7 @@ static size_t ldap_xlat(void *instance, REQUEST *request, const char *fmt,
        LDAP_CONN *conn;
 
        DEBUG("  [%s] - ldap_xlat", inst->xlat_name);
-       if (!radius_xlat(url, sizeof(url), fmt, request, func)) {
+       if (!radius_xlat(url, sizeof(url), fmt, request, ldap_escape_func)) {
                radlog (L_ERR, "  [%s] Unable to create LDAP URL.\n", inst->xlat_name);
                return 0;
        }