mirror of
https://github.com/samba-team/samba.git
synced 2025-11-21 12:23:50 +03:00
r19901: Fix a potential NULL dereference
This commit is contained in:
committed by
Gerald (Jerry) Carter
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;
|
||||
|
||||
Reference in New Issue
Block a user