mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 14:25:41 +00:00
Fix a number of warnings (and a few real bugs) found by enabling
gcc warnings. See RT ticket #17013 for more.
This commit is contained in:
@@ -206,7 +206,7 @@ isc_result_t dns_zone_lookup (struct dns_zone **zone, const char *name)
|
||||
if (name [len - 1] != '.') {
|
||||
tname = dmalloc ((unsigned)len + 2, MDL);
|
||||
if (!tname)
|
||||
return ISC_R_NOMEMORY;;
|
||||
return ISC_R_NOMEMORY;
|
||||
strcpy (tname, name);
|
||||
tname [len] = '.';
|
||||
tname [len + 1] = 0;
|
||||
|
Reference in New Issue
Block a user