projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d26c7e
)
Don't have a 2-byte over-run read
author
aland
<aland>
Wed, 3 Aug 2005 00:10:51 +0000
(
00:10
+0000)
committer
aland
<aland>
Wed, 3 Aug 2005 00:10:51 +0000
(
00:10
+0000)
src/lib/radius.c
patch
|
blob
|
history
diff --git
a/src/lib/radius.c
b/src/lib/radius.c
index
e0a36b9
..
bccfc0e
100644
(file)
--- a/
src/lib/radius.c
+++ b/
src/lib/radius.c
@@
-1643,7
+1643,7
@@
int rad_decode(RADIUS_PACKET *packet, RADIUS_PACKET *original,
subptr = ptr + 4;
sublen = attrlen - 4;
- while (sublen >
0
) {
+ while (sublen >
= 2
) {
if (subptr[1] < 2) { /* too short */
break;
}