Commit d1f925a1 authored by Ted Lemon's avatar Ted Lemon
Browse files

Fix a bug in the case-insensitive hash generator.

parent 7d9784f6
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#ifndef lint #ifndef lint
static char copyright[] = static char copyright[] =
"$Id: hash.c,v 1.19 2000/03/18 02:15:36 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; "$Id: hash.c,v 1.20 2000/03/18 03:31:39 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */ #endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
...@@ -90,7 +90,7 @@ static int do_case_hash (name, len, size) ...@@ -90,7 +90,7 @@ static int do_case_hash (name, len, size)
c = tolower (c); c = tolower (c);
/* Add the character in... */ /* Add the character in... */
accum += *s++; accum += c;
/* Add carry back in... */ /* Add carry back in... */
while (accum > 255) { while (accum > 255) {
accum = (accum & 255) + (accum >> 8); accum = (accum & 255) + (accum >> 8);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment