diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-04-22 03:37:01 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-04-22 03:37:01 +0200 |
commit | d2266d43bfe3cd9a40deb50dfe80ab679d2def0c (patch) | |
tree | f4b624bec65020aa7636c7e9454207560ad293c3 /networking/udhcp/dhcpc.c | |
parent | c9665631d37daeb90084a28b3f339ce5296677a9 (diff) | |
download | busybox-w32-d2266d43bfe3cd9a40deb50dfe80ab679d2def0c.tar.gz busybox-w32-d2266d43bfe3cd9a40deb50dfe80ab679d2def0c.tar.bz2 busybox-w32-d2266d43bfe3cd9a40deb50dfe80ab679d2def0c.zip |
udhcpc: fix improper size calculation for OPTION_STRING_HOST
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r-- | networking/udhcp/dhcpc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 2f2016cd5..ddb328dd5 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -101,6 +101,7 @@ static const uint8_t len_of_option_as_string[] = { | |||
101 | [OPTION_STATIC_ROUTES ] = sizeof("255.255.255.255/32 255.255.255.255 "), | 101 | [OPTION_STATIC_ROUTES ] = sizeof("255.255.255.255/32 255.255.255.255 "), |
102 | [OPTION_6RD ] = sizeof("32 128 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 255.255.255.255 "), | 102 | [OPTION_6RD ] = sizeof("32 128 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 255.255.255.255 "), |
103 | [OPTION_STRING ] = 1, | 103 | [OPTION_STRING ] = 1, |
104 | [OPTION_STRING_HOST ] = 1, | ||
104 | #if ENABLE_FEATURE_UDHCP_RFC3397 | 105 | #if ENABLE_FEATURE_UDHCP_RFC3397 |
105 | [OPTION_DNS_STRING ] = 1, /* unused */ | 106 | [OPTION_DNS_STRING ] = 1, /* unused */ |
106 | /* Hmmm, this severely overestimates size if SIP_SERVERS option | 107 | /* Hmmm, this severely overestimates size if SIP_SERVERS option |