Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
ctdb-tools: CID 1125617 String not null terminated (STRING_NULL)
Browse files Browse the repository at this point in the history
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12244

Signed-off-by: Martin Schwenke <[email protected]>
Reviewed-by: Amitay Isaacs <[email protected]>
  • Loading branch information
martin-schwenke authored and Amitay Isaacs committed Sep 8, 2016
1 parent a2abc78 commit 19b4fb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ctdb/tools/ctdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -4413,6 +4413,7 @@ static int control_dumpdbbackup(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,
Expand Down

0 comments on commit 19b4fb2

Please sign in to comment.