mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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>
This commit is contained in:
parent
97bbd631d8
commit
096358f4e1
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user