summaryrefslogtreecommitdiffstats
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/utils/oLschema2ldif.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/utils/oLschema2ldif.c b/source4/utils/oLschema2ldif.c
index bcdf570977..88dba01550 100644
--- a/source4/utils/oLschema2ldif.c
+++ b/source4/utils/oLschema2ldif.c
@@ -352,7 +352,13 @@ static struct ldb_message *process_entry(TALLOC_CTX *mem_ctx, const char *entry)
bool single_valued = false;
ctx = talloc_new(mem_ctx);
+ if (ctx == NULL) {
+ return NULL;
+ }
msg = ldb_msg_new(ctx);
+ if (msg == NULL) {
+ goto failed;
+ }
ldb_msg_add_string(msg, "objectClass", "top");