projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecf751a
)
Check for undefined types, too
author
Alan T. DeKok
<aland@freeradius.org>
Mon, 5 Oct 2009 15:32:39 +0000
(17:32 +0200)
committer
Alan T. DeKok
<aland@freeradius.org>
Mon, 5 Oct 2009 15:33:20 +0000
(17:33 +0200)
src/lib/radius.c
patch
|
blob
|
history
diff --git
a/src/lib/radius.c
b/src/lib/radius.c
index
9ef943d
..
326ed52
100644
(file)
--- a/
src/lib/radius.c
+++ b/
src/lib/radius.c
@@
-2583,7
+2583,7
@@
static VALUE_PAIR *rad_continuation2vp(const RADIUS_PACKET *packet,
* Note that we don't check "flag" here. The calling
* code ensures that
*/
- if (
da->type != PW_TYPE_TLV
) {
+ if (
!da || (da->type != PW_TYPE_TLV)
) {
not_well_formed:
if (tlv_data == data) { /* true if we had 'goto' */
tlv_data = malloc(tlv_length);