1
0
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:
Volker Lendecke
2006-10-04 19:03:29 +00:00
committed by Gerald (Jerry) Carter
parent 91c29e425a
commit 2dff8ee8cc

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