Fix typo in SDBM hash function.

Thanks to Luis Carvalho for spotting the error.
This commit is contained in:
Simon Kelley
2016-04-25 17:05:15 +01:00
parent 14ffa0770b
commit d6b749af91
2 changed files with 2 additions and 2 deletions

View File

@@ -420,7 +420,7 @@ struct dhcp_context *address6_allocate(struct dhcp_context *context, unsigned c
j = rand64();
else
for (j = iaid, i = 0; i < clid_len; i++)
j += clid[i] + (j << 6) + (j << 16) - j;
j = clid[i] + (j << 6) + (j << 16) - j;
for (pass = 0; pass <= plain_range ? 1 : 0; pass++)
for (c = context; c; c = c->current)