mirror of
https://github.com/samba-team/samba.git
synced 2025-11-25 00:23:52 +03:00
r19068: Fix a potential NULL dereference
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
91c29e425a
commit
2dff8ee8cc
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user