summaryrefslogtreecommitdiff
path: root/busybox/networking/udhcp
diff options
context:
space:
mode:
Diffstat (limited to 'busybox/networking/udhcp')
-rw-r--r--busybox/networking/udhcp/Makefile.in2
-rw-r--r--busybox/networking/udhcp/clientpacket.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/busybox/networking/udhcp/Makefile.in b/busybox/networking/udhcp/Makefile.in
index 94750f6..ac9be5c 100644
--- a/busybox/networking/udhcp/Makefile.in
+++ b/busybox/networking/udhcp/Makefile.in
@@ -47,7 +47,7 @@ UDHCP_OBJS=$(patsubst %.c,$(UDHCP_DIR)%.o, $(UDHCP-y))
libraries-y+=$(UDHCP_DIR)$(UDHCP_AR)
$(UDHCP_DIR)$(UDHCP_AR): $(UDHCP_OBJS)
- $(AR) -ro $@ $(UDHCP_OBJS)
+ $(AR) $(ARFLAGS) $@ $(UDHCP_OBJS)
$(UDHCP_OBJS): $(UDHCP_DIR)%.o : $(srcdir)/%.c
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -DIN_BUSYBOX -c $< -o $@
diff --git a/busybox/networking/udhcp/clientpacket.c b/busybox/networking/udhcp/clientpacket.c
index ec96601..a0e8ccf 100644
--- a/busybox/networking/udhcp/clientpacket.c
+++ b/busybox/networking/udhcp/clientpacket.c
@@ -76,7 +76,8 @@ static void init_packet(struct dhcpMessage *packet, char type)
init_header(packet, type);
memcpy(packet->chaddr, client_config.arp, 6);
- add_option_string(packet->options, client_config.clientid);
+ if (client_config.clientid)
+ add_option_string(packet->options, client_config.clientid);
if (client_config.hostname) add_option_string(packet->options, client_config.hostname);
add_option_string(packet->options, (uint8_t *) &vendor_id);
}