2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

4164. [bug] Don't rename slave files and journals on out of memory.

[RT #40033]

4163.   [bug]           Address compiler warnings. [RT #40024]
This commit is contained in:
Mark Andrews
2015-07-13 09:46:59 +10:00
parent b3338fc248
commit 3a49d0ff10
6 changed files with 26 additions and 15 deletions

View File

@@ -376,7 +376,7 @@ hash_key(const dns_rrl_key_t *key) {
int i;
hval = key->w[0];
for (i = sizeof(*key) / sizeof(key->w[0]) - 1; i >= 0; --i) {
for (i = sizeof(key->w) / sizeof(key->w[0]) - 1; i >= 0; --i) {
hval = key->w[i] + (hval<<1);
}
return (hval);