2
0
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:
Mark Andrews
2014-02-24 09:29:49 +11:00
parent 02a5e3ed85
commit 9e39bafd2e
5 changed files with 20 additions and 24 deletions

View File

@@ -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;