summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-11-09 16:40:18 +0100
committerIra Cooper <ira@samba.org>2013-11-11 21:04:08 +0100
commit096358f4e1b8000d1006293963f4c571ee6fc8cb (patch)
treefb39aa339fe6a25eab41b812cfe6ee3b8d8a509a /source4/utils
parent97bbd631d8b357e0392209052872be2f67255f29 (diff)
downloadsamba-096358f4e1b8000d1006293963f4c571ee6fc8cb.tar.gz
oLschema2ldif: Add some NULL checks
This should fix Coverity ID 1034812 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
Diffstat (limited to 'source4/utils')
-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 bcdf5709775..88dba015509 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");