projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1c7d14
)
Don't insert message type twice
author
Alan T. DeKok
<aland@freeradius.org>
Sun, 14 Sep 2008 13:15:40 +0000
(15:15 +0200)
committer
Alan T. DeKok
<aland@freeradius.org>
Sun, 14 Sep 2008 13:15:40 +0000
(15:15 +0200)
src/lib/dhcp.c
patch
|
blob
|
history
diff --git
a/src/lib/dhcp.c
b/src/lib/dhcp.c
index
c96b24d
..
676f05d
100644
(file)
--- a/
src/lib/dhcp.c
+++ b/
src/lib/dhcp.c
@@
-1008,6
+1008,7
@@
int fr_dhcp_encode(RADIUS_PACKET *packet, RADIUS_PACKET *original)
uint8_t *plength, *pattr;
if (!IS_DHCP_ATTR(vp)) goto next;
+ if (vp->attribute == DHCP2ATTR(53)) goto next; /* already done */
if (((vp->attribute & 0xffff) > 255) &&
(DHCP_BASE_ATTR(vp->attribute) != PW_DHCP_OPTION_82)) goto next;