projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee6857a
)
Fix redundant check for uint32_t >= 0.
author
phampson
<phampson>
Mon, 1 Sep 2003 03:00:28 +0000
(
03:00
+0000)
committer
phampson
<phampson>
Mon, 1 Sep 2003 03:00:28 +0000
(
03:00
+0000)
Thanks to Steve Grubb <linux_4ever@yahoo.com>
src/modules/rlm_radutmp/rlm_radutmp.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_radutmp/rlm_radutmp.c
b/src/modules/rlm_radutmp/rlm_radutmp.c
index
b8bd938
..
e4be7c7
100644
(file)
--- a/
src/modules/rlm_radutmp/rlm_radutmp.c
+++ b/
src/modules/rlm_radutmp/rlm_radutmp.c
@@
-302,7
+302,7
@@
static int radutmp_accounting(void *instance, REQUEST *request)
sizeof(ut.session_id));
break;
case PW_NAS_PORT_TYPE:
- if (vp->lvalue
>= 0 && vp->lvalue
<= 4)
+ if (vp->lvalue <= 4)
ut.porttype = porttypes[vp->lvalue];
nas_port_type = vp->lvalue;
break;