Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
dhcp
Commits
d1f925a1
Commit
d1f925a1
authored
Mar 18, 2000
by
Ted Lemon
Browse files
Fix a bug in the case-insensitive hash generator.
parent
7d9784f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/hash.c
View file @
d1f925a1
...
...
@@ -43,7 +43,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: hash.c,v 1.
19
2000/03/18 0
2:15
:3
6
mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.
\n
"
;
"$Id: hash.c,v 1.
20
2000/03/18 0
3:31
:3
9
mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include
"dhcpd.h"
...
...
@@ -90,7 +90,7 @@ static int do_case_hash (name, len, size)
c
=
tolower
(
c
);
/* Add the character in... */
accum
+=
*
s
++
;
accum
+=
c
;
/* Add carry back in... */
while
(
accum
>
255
)
{
accum
=
(
accum
&
255
)
+
(
accum
>>
8
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment