[SCM] Samba Shared Repository - branch v4-5-test updated

[email protected] (Karolin Seeger)
Newsgroups gmane.network.samba.cvs
Message-ID <[email protected]>
The branch, v4-5-test has been updated
       via  82053bf ctdb-recovery: Avoid NULL dereference in failure case
      from  446ead2 ctdb-locking: Reset real-time priority in lock helper

https://git.samba.org/?p=samba.git;a=shortlog;h=v4-5-test


- Log -----------------------------------------------------------------
commit 82053bff469b6fa8ad6281ec20d4bdddfc1a35a4
Author: Amitay Isaacs <[email protected]>
Date:   Fri Nov 18 11:47:56 2016 +1100

    ctdb-recovery: Avoid NULL dereference in failure case
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=12434
    
    Signed-off-by: Amitay Isaacs <[email protected]>
    Reviewed-by: Volker Lendecke <[email protected]>
    
    Autobuild-User(master): Volker Lendecke <[email protected]>
    Autobuild-Date(master): Mon Nov 21 12:26:04 CET 2016 on sn-devel-144
    
    (cherry picked from commit 54e392b385728bba047404465207340a2e354ec6)
    
    Autobuild-User(v4-5-test): Karolin Seeger <[email protected]>
    Autobuild-Date(v4-5-test): Tue Nov 22 13:56:50 CET 2016 on sn-devel-144

-----------------------------------------------------------------------

Summary of changes:
 ctdb/server/ctdb_recovery_helper.c | 1 +
 1 file changed, 1 insertion(+)


Changeset truncated at 500 lines:

diff --git a/ctdb/server/ctdb_recovery_helper.c b/ctdb/server/ctdb_recovery_helper.c
index 4e4a986..d54c290 100644
--- a/ctdb/server/ctdb_recovery_helper.c
+++ b/ctdb/server/ctdb_recovery_helper.c
@@ -140,6 +140,7 @@ static struct recdb_context *recdb_create(TALLOC_CTX *mem_ctx, uint32_t db_id,
 	if (recdb->db == NULL) {
 		talloc_free(recdb);
 		LOG("failed to create recovery db %s\n", recdb->db_path);
+		return NULL;
 	}
 
 	recdb->persistent = persistent;


-- 
Samba Shared Repository
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.