projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f8d201
)
If the TLVs are malformed, they're unknown
author
Alan T. DeKok
<aland@freeradius.org>
Thu, 11 Jun 2015 15:41:33 +0000
(11:41 -0400)
committer
Alan T. DeKok
<aland@freeradius.org>
Fri, 12 Jun 2015 15:09:45 +0000
(11:09 -0400)
src/modules/proto_dhcp/dhcp.c
patch
|
blob
|
history
diff --git
a/src/modules/proto_dhcp/dhcp.c
b/src/modules/proto_dhcp/dhcp.c
index
473ccad
..
fd2ac47
100644
(file)
--- a/
src/modules/proto_dhcp/dhcp.c
+++ b/
src/modules/proto_dhcp/dhcp.c
@@
-652,6
+652,7
@@
static int fr_dhcp_decode_vsa(TALLOC_CTX *ctx, VALUE_PAIR **tlv, uint8_t const *
return 0;
malformed:
+ pair2unknown(*tlv);
pairmemcpy(*tlv, data, len);
return 0;
@@
-806,6
+807,7
@@
static int fr_dhcp_decode_suboption(TALLOC_CTX *ctx, VALUE_PAIR **tlv, uint8_t c
return 0;
malformed:
+ pair2unknown(*tlv);
pairmemcpy(*tlv, data, len);
return 0;