1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +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 used to be commit 36aa8390807581442c68ac3ee9dd6eb05d89b86d)
This commit is contained in:
Andrew Bartlett 2006-06-07 04:23:42 +00:00 committed by Gerald (Jerry) Carter
parent 9f6884df6a
commit c38f24b021

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;
}