ldapServiceLookup.patch

application/octet-stream

Filename: ldapServiceLookup.patch
Type: application/octet-stream
Part: 0
Message: Fix for bug in ldapServiceLookup in libpq

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: unified
File+
src/interfaces/libpq/fe-connect.c 0 0
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
new file mode 100644
index 1b409d1..ae13944
*** a/src/interfaces/libpq/fe-connect.c
--- b/src/interfaces/libpq/fe-connect.c
*************** ldapServiceLookup(const char *purl, PQco
*** 3613,3619 ****
  		p += values[i]->bv_len;
  		*(p++) = '\n';
  		if (values[i + 1] == NULL)
! 			*(p + 1) = '\0';
  	}
  
  	ldap_value_free_len(values);
--- 3613,3619 ----
  		p += values[i]->bv_len;
  		*(p++) = '\n';
  		if (values[i + 1] == NULL)
! 			*p = '\0';
  	}
  
  	ldap_value_free_len(values);