[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [PATCH 1_19_stable 2/2] udhcpc: fix improper size calculation for OPTION_STRING_HOST
From:       Natanael Copa <natanael.copa () gmail ! com>
Date:       2012-08-31 9:35:21
Message-ID: 1346405721-7045-3-git-send-email-ncopa () alpinelinux ! org
[Download RAW message or body]

From: Denys Vlasenko <vda.linux@googlemail.com>

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
(cherry picked from commit d2266d43bfe3cd9a40deb50dfe80ab679d2def0c)

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
---
 networking/udhcp/dhcpc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 70ca199..96eb0cc 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -101,6 +101,7 @@ static const uint8_t len_of_option_as_string[] = {
 	[OPTION_IP_PAIR         ] = sizeof("255.255.255.255 ") * 2,
 	[OPTION_STATIC_ROUTES   ] = sizeof("255.255.255.255/32 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
-- 
1.7.12

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic