projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
986da6b
)
use sizeof()
author
aland
<aland>
Mon, 9 Apr 2007 23:26:27 +0000
(23:26 +0000)
committer
aland
<aland>
Mon, 9 Apr 2007 23:26:27 +0000
(23:26 +0000)
src/modules/rlm_mschap/rlm_mschap.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_mschap/rlm_mschap.c
b/src/modules/rlm_mschap/rlm_mschap.c
index
8ba9173
..
3ce0c6d
100644
(file)
--- a/
src/modules/rlm_mschap/rlm_mschap.c
+++ b/
src/modules/rlm_mschap/rlm_mschap.c
@@
-243,7
+243,7
@@
static void auth_response(const char *username,
/*
* The hexadecimal digits [A-F] MUST be uppercase.
*/
- for (i = 0; i <
10
; i++) {
+ for (i = 0; i <
sizeof(digest)
; i++) {
response[2 + (i * 2)] = hex[(digest[i] >> 4) & 0x0f];
response[3 + (i * 2)] = hex[digest[i] & 0x0f];
}