projects
/
project
/
odhcp6c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43a052c
)
Fix DNS-server parsing with more than one server
author
Steven Barth
<steven@midlink.org>
Fri, 18 Jan 2013 08:20:19 +0000
(09:20 +0100)
committer
Steven Barth
<steven@midlink.org>
Fri, 18 Jan 2013 08:20:19 +0000
(09:20 +0100)
src/dhcpv6.c
patch
|
blob
|
history
diff --git
a/src/dhcpv6.c
b/src/dhcpv6.c
index a3d4223404688dc9234be1753b7e3ccc2f4b9919..93433d4d59ce5e4b945fec9904e6d4d3feba5057 100644
(file)
--- a/
src/dhcpv6.c
+++ b/
src/dhcpv6.c
@@
-675,7
+675,7
@@
static int dhcpv6_handle_reply(_unused enum dhcpv6_msg orig,
t3 = n;
} else if (otype == DHCPV6_OPT_DNS_SERVERS) {
- if (olen
== 16
)
+ if (olen
% 16 == 0
)
odhcp6c_add_state(STATE_DNS, odata, olen);
} else if (otype == DHCPV6_OPT_DNS_DOMAIN) {
odhcp6c_add_state(STATE_SEARCH, odata, olen);