mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
ldb: Fix CID 1034793 Dereference null return value
Add a proper NULL check Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
6417d9e035
commit
15bd82550d
@ -324,6 +324,10 @@ static void start_test_index(struct ldb_context **ldb)
|
||||
ldb_delete(*ldb, indexlist);
|
||||
|
||||
msg = ldb_msg_new(NULL);
|
||||
if (msg == NULL) {
|
||||
printf("ldb_msg_new failed\n");
|
||||
exit(LDB_ERR_OPERATIONS_ERROR);
|
||||
}
|
||||
|
||||
msg->dn = indexlist;
|
||||
ldb_msg_add_string(msg, "@IDXATTR", strdup("uid"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user