mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
s4/dnsserver: Fix NULL check
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
15f0d34d34
commit
3d490c225b
@ -283,7 +283,7 @@ static struct ldb_parse_tree *build_equality_operation(
|
|||||||
value = &el->u.equality.value;
|
value = &el->u.equality.value;
|
||||||
length = (add_asterix) ? size + 2 : size + 1;
|
length = (add_asterix) ? size + 2 : size + 1;
|
||||||
value->data = talloc_zero_array(el, uint8_t, length);
|
value->data = talloc_zero_array(el, uint8_t, length);
|
||||||
if (el == NULL) {
|
if (value->data == NULL) {
|
||||||
DBG_ERR("Unable to allocate value->data\n");
|
DBG_ERR("Unable to allocate value->data\n");
|
||||||
TALLOC_FREE(el);
|
TALLOC_FREE(el);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user