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:
parent
d527ab1094
commit
8eedd5c48b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user