Commit 35b4a755 authored by Gisle Vanem's avatar Gisle Vanem
Browse files

curl_easy_unescape() takes 4 arguments.

parent 5a4b4384
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -503,26 +503,26 @@ static bool unescape_elements (void *data, LDAPURLDesc *ludp)
  int i;
  int i;


  if (ludp->lud_filter) {
  if (ludp->lud_filter) {
    ludp->lud_filter = curl_easy_unescape(data, ludp->lud_filter, 0);
    ludp->lud_filter = curl_easy_unescape(data, ludp->lud_filter, 0, NULL);
    if (!ludp->lud_filter)
    if (!ludp->lud_filter)
       return (FALSE);
       return (FALSE);
  }
  }


  for (i = 0; ludp->lud_attrs && ludp->lud_attrs[i]; i++) {
  for (i = 0; ludp->lud_attrs && ludp->lud_attrs[i]; i++) {
    ludp->lud_attrs[i] = curl_easy_unescape(data, ludp->lud_attrs[i], 0);
    ludp->lud_attrs[i] = curl_easy_unescape(data, ludp->lud_attrs[i], 0, NULL);
    if (!ludp->lud_attrs[i])
    if (!ludp->lud_attrs[i])
       return (FALSE);
       return (FALSE);
  }
  }


  for (i = 0; ludp->lud_exts && ludp->lud_exts[i]; i++) {
  for (i = 0; ludp->lud_exts && ludp->lud_exts[i]; i++) {
    ludp->lud_exts[i] = curl_easy_unescape(data, ludp->lud_exts[i], 0);
    ludp->lud_exts[i] = curl_easy_unescape(data, ludp->lud_exts[i], 0, NULL);
    if (!ludp->lud_exts[i])
    if (!ludp->lud_exts[i])
       return (FALSE);
       return (FALSE);
  }
  }


  if (ludp->lud_dn) {
  if (ludp->lud_dn) {
    char *dn = ludp->lud_dn;
    char *dn = ludp->lud_dn;
    char *new_dn = curl_easy_unescape(data, dn, 0);
    char *new_dn = curl_easy_unescape(data, dn, 0, NULL);


    free(dn);
    free(dn);
    ludp->lud_dn = new_dn;
    ludp->lud_dn = new_dn;