1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

libdap: Fix a '\0' vs NULL mixup

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2015-10-12 22:10:51 +02:00 committed by Jeremy Allison
parent d527ab1094
commit 8eedd5c48b

View File

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