summaryrefslogtreecommitdiff
path: root/networking/udhcp/clientpacket.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/clientpacket.c')
-rw-r--r--networking/udhcp/clientpacket.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/networking/udhcp/clientpacket.c b/networking/udhcp/clientpacket.c
index f091d8067..a255d6e84 100644
--- a/networking/udhcp/clientpacket.c
+++ b/networking/udhcp/clientpacket.c
@@ -47,8 +47,12 @@ static void init_packet(struct dhcp_packet *packet, char type)
47 add_option_string(packet->options, client_config.hostname); 47 add_option_string(packet->options, client_config.hostname);
48 if (client_config.fqdn) 48 if (client_config.fqdn)
49 add_option_string(packet->options, client_config.fqdn); 49 add_option_string(packet->options, client_config.fqdn);
50 if ((type != DHCPDECLINE) && (type != DHCPRELEASE)) 50 if (type != DHCPDECLINE
51 && type != DHCPRELEASE
52 && client_config.vendorclass
53 ) {
51 add_option_string(packet->options, client_config.vendorclass); 54 add_option_string(packet->options, client_config.vendorclass);
55 }
52} 56}
53 57
54 58