1
0
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:
Volker Lendecke 2006-10-04 18:22:51 +00:00 committed by Gerald (Jerry) Carter
parent 7bce558fec
commit 101428b7e5

View File

@ -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 */