mirror of
https://github.com/samba-team/samba.git
synced 2024-12-29 11:21:54 +03:00
r19067: Fix a potential NULL dereference
(This used to be commit 6a8937ed03
)
This commit is contained in:
parent
7bce558fec
commit
101428b7e5
@ -345,6 +345,10 @@ struct ldb_dn *ldb_dn_explode(void *mem_ctx, const char *dn)
|
||||
|
||||
/* Allocate a structure to hold the exploded DN */
|
||||
edn = ldb_dn_new(mem_ctx);
|
||||
if (edn == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
pdn = NULL;
|
||||
|
||||
/* Empty DNs */
|
||||
|
Loading…
Reference in New Issue
Block a user