mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
4128. [bug] Address issues raised by Coverity 7.6. [RT #39537]
This commit is contained in:
@@ -2107,6 +2107,8 @@ dns_journal_compact(isc_mem_t *mctx, char *filename, isc_uint32_t serial,
|
||||
char backup[1024];
|
||||
isc_boolean_t is_backup = ISC_FALSE;
|
||||
|
||||
REQUIRE(filename != NULL);
|
||||
|
||||
namelen = strlen(filename);
|
||||
if (namelen > 4U && strcmp(filename + namelen - 4, ".jnl") == 0)
|
||||
namelen -= 4;
|
||||
|
Reference in New Issue
Block a user