projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c966563
)
udhcpc: fix improper size calculation for OPTION_STRING_HOST
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 22 Apr 2012 01:37:01 +0000
(
03:37
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 22 Apr 2012 01:37:01 +0000
(
03:37
+0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/dhcpc.c
patch
|
blob
|
history
diff --git
a/networking/udhcp/dhcpc.c
b/networking/udhcp/dhcpc.c
index 2f2016cd58f0ceb20cbb5205b4f2b9f4bc8c5050..ddb328dd57de045045498652753df33c0dab6af3 100644
(file)
--- a/
networking/udhcp/dhcpc.c
+++ b/
networking/udhcp/dhcpc.c
@@
-101,6
+101,7
@@
static const uint8_t len_of_option_as_string[] = {
[OPTION_STATIC_ROUTES ] = sizeof("255.255.255.255/32 255.255.255.255 "),
[OPTION_6RD ] = sizeof("32 128 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 255.255.255.255 "),
[OPTION_STRING ] = 1,
+ [OPTION_STRING_HOST ] = 1,
#if ENABLE_FEATURE_UDHCP_RFC3397
[OPTION_DNS_STRING ] = 1, /* unused */
/* Hmmm, this severely overestimates size if SIP_SERVERS option