1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-01 16:23:49 +03:00

r16073: On an incoming wildcard search, it is critical that the size be

correct, or we try and do a memcmp on the trailing '\0'.

This happens because we now use memcmp for the prefix matching.

I just wish I had a test other than a particular invocation of the OSX
client.  (I've tried and failed so far)

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
2006-06-07 04:23:42 +00:00
committed by Gerald (Jerry) Carter
parent f763970caf
commit 36aa839080

View File

@@ -548,9 +548,9 @@ static struct ldb_val **ldap_decode_substring(TALLOC_CTX *mem_ctx, struct ldb_va
if (chunks[chunk_num]->data == NULL) {
return NULL;
}
chunks[chunk_num]->length = strlen(value) + 1;
chunks[chunk_num]->length = strlen(value);
chunks[chunk_num + 1] = NULL;
chunks[chunk_num + 1] = '\0';
return chunks;
}