projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a56a79b
)
Free vp on error
author
Alan T. DeKok
<aland@freeradius.org>
Sun, 17 Feb 2013 02:15:49 +0000
(21:15 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Sun, 17 Feb 2013 15:44:05 +0000
(10:44 -0500)
Closes Coverity #982097
src/lib/dhcp.c
patch
|
blob
|
history
diff --git
a/src/lib/dhcp.c
b/src/lib/dhcp.c
index
d5422f7
..
1b38d80
100644
(file)
--- a/
src/lib/dhcp.c
+++ b/
src/lib/dhcp.c
@@
-977,7
+977,10
@@
static VALUE_PAIR *fr_dhcp_vp2suboption(VALUE_PAIR *vps)
length = fr_dhcp_vp2attr(vp, ptr + 2,
tlv->vp_tlv + tlv->length - ptr);
- if (length > 255) return NULL;
+ if (length > 255) {
+ pairfree(&vp);
+ return NULL;
+ }
/*
* Pack the attribute.