mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
r19901: Fix a potential NULL dereference
This commit is contained in:
parent
44e6d39e0e
commit
75e6fb9654
@ -251,6 +251,9 @@ static bool ldb_dn_explode(struct ldb_dn *dn)
|
||||
|
||||
/* Components data space is allocated here once */
|
||||
data = talloc_array(dn->components, char, strlen(dn->linearized) + 1);
|
||||
if (!data) {
|
||||
return false;
|
||||
}
|
||||
|
||||
p = dn->linearized;
|
||||
in_attr = true;
|
||||
|
Loading…
Reference in New Issue
Block a user