projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98777ae
)
If State is too long, warn instead of assert
author
Alan T. DeKok
<aland@freeradius.org>
Sun, 15 Feb 2015 19:04:49 +0000
(14:04 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Sun, 15 Feb 2015 19:06:23 +0000
(14:06 -0500)
src/main/state.c
patch
|
blob
|
history
diff --git
a/src/main/state.c
b/src/main/state.c
index
19be3ff
..
c13eee2
100644
(file)
--- a/
src/main/state.c
+++ b/
src/main/state.c
@@
-263,7
+263,10
@@
static state_entry_t *fr_state_create(RADIUS_PACKET *packet, state_entry_t *old)
* one we created above.
*/
if (vp) {
- rad_assert(vp->vp_length == sizeof(entry->state));
+ if (debug_flag && (vp->length > sizeof(entry->state))) {
+ WARN("State should be %zd octets!",
+ sizeof(entry->state));
+ }
memcpy(entry->state, vp->vp_octets, sizeof(entry->state));
} else {