summaryrefslogtreecommitdiff
path: root/server/dhcpv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/dhcpv6.c')
-rw-r--r--server/dhcpv6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/dhcpv6.c b/server/dhcpv6.c
index 6cca58be..ffa339de 100644
--- a/server/dhcpv6.c
+++ b/server/dhcpv6.c
@@ -5957,6 +5957,7 @@ find_hosts_by_duid_chaddr(struct host_decl **host,
*/
htype = getUShort(client_id->data + 2);
hlen = 0;
+ chaddr = NULL;
/* The first two octets of the DUID identify the type. */
switch(getUShort(client_id->data)) {
@@ -5977,8 +5978,6 @@ find_hosts_by_duid_chaddr(struct host_decl **host,
break;
default:
- /* Silence compiler warnings. */
- chaddr = NULL;
break;
}