projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40f52fa
)
Check length of octets type attributes too
author
Arran Cudbard-Bell
<a.cudbardb@freeradius.org>
Fri, 2 May 2014 14:03:43 +0000
(15:03 +0100)
committer
Arran Cudbard-Bell
<a.cudbardb@freeradius.org>
Fri, 2 May 2014 14:03:43 +0000
(15:03 +0100)
src/include/libradius.h
patch
|
blob
|
history
diff --git
a/src/include/libradius.h
b/src/include/libradius.h
index
e152656
..
c077d86
100644
(file)
--- a/
src/include/libradius.h
+++ b/
src/include/libradius.h
@@
-112,6
+112,7
@@
do {\
fr_perror("Type check failed for attribute \"%s\"", (_x)->da->name);\
(void) talloc_get_type_abort((_x)->data.ptr, uint8_t);\
}\
+ fr_assert((_x)->length == talloc_array_length((_x)->vp_octets));\
break;\
case PW_TYPE_STRING:\
if (!talloc_get_type((_x)->data.ptr, char)) {\