projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2b0f9d
)
Fix integer conversion; radius "ints" are really uint32's.
author
fcusack
<fcusack>
Thu, 19 Jun 2003 09:04:18 +0000
(09:04 +0000)
committer
fcusack
<fcusack>
Thu, 19 Jun 2003 09:04:18 +0000
(09:04 +0000)
Thanks to Sepp Rudel and Oliver Graf.
src/lib/valuepair.c
patch
|
blob
|
history
diff --git
a/src/lib/valuepair.c
b/src/lib/valuepair.c
index
0211741
..
231a7d6
100644
(file)
--- a/
src/lib/valuepair.c
+++ b/
src/lib/valuepair.c
@@
-588,7
+588,7
@@
VALUE_PAIR *pairparsevalue(VALUE_PAIR *vp, const char *value)
* Note that ALL integers are unsigned!
*/
if (isdigit((int) *value)) {
- vp->lvalue =
atoi(value
);
+ vp->lvalue =
(uint32_t) strtoul(value, NULL, 10
);
vp->length = 4;
}
/*