mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
adjust SIT computation
This commit is contained in:
@@ -4286,7 +4286,7 @@ dns_adb_setsit(dns_adb_t *adb, dns_adbaddrinfo_t *addr,
|
||||
}
|
||||
|
||||
if (addr->entry->sit != NULL)
|
||||
memcpy(addr->entry->sit, sit, len);
|
||||
memmove(addr->entry->sit, sit, len);
|
||||
UNLOCK(&adb->entrylocks[bucket]);
|
||||
}
|
||||
|
||||
@@ -4304,7 +4304,7 @@ dns_adb_getsit(dns_adb_t *adb, dns_adbaddrinfo_t *addr,
|
||||
if (sit != NULL && addr->entry->sit != NULL &&
|
||||
len >= addr->entry->sitlen)
|
||||
{
|
||||
memcpy(sit, addr->entry->sit, addr->entry->sitlen);
|
||||
memmove(sit, addr->entry->sit, addr->entry->sitlen);
|
||||
len = addr->entry->sitlen;
|
||||
} else
|
||||
len = 0;
|
||||
|
Reference in New Issue
Block a user