1
0
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:
Volker Lendecke 2006-11-25 17:19:42 +00:00 committed by Gerald (Jerry) Carter
parent 44e6d39e0e
commit 75e6fb9654

View File

@ -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;