mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ctdb-tools: Fix CID 1125618 String not null terminated (STRING_NULL)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12157 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
254d5545f4
commit
af502fade1
@ -4182,6 +4182,7 @@ static int control_restoredb(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb,
|
||||
argv[0]);
|
||||
return ret;
|
||||
}
|
||||
db_hdr.name[sizeof(db_hdr.name)-1] = '\0';
|
||||
|
||||
if (db_hdr.version != DB_VERSION) {
|
||||
fprintf(stderr,
|
||||
|
Loading…
Reference in New Issue
Block a user