2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 22:05:23 +00:00

[master] Corrects high impact issues reported by Coverity.

Merges in rt36712
This commit is contained in:
Thomas Markwalder
2014-08-25 13:22:29 -04:00
parent a6365d17d1
commit 36e2c22493
10 changed files with 73 additions and 65 deletions

View File

@@ -1135,8 +1135,7 @@ ddns_update_lease_ptr(struct lease *lease,
return (ISC_R_FAILURE);
}
else {
strncpy(ddns_address, piaddr(ddns_cb->address),
MAX_ADDRESS_STRING_LEN);
strcpy(ddns_address, piaddr(ddns_cb->address));
}
#if defined (DEBUG_DNS_UPDATES)
log_info("%s(%d): Updating lease_ptr for ddns_cp=%p (addr=%s)",