summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorMark Andrews <marka@isc.org>2009-11-23 21:19:25 +0000
committerMark Andrews <marka@isc.org>2009-11-23 21:19:25 +0000
commitfed0952fbb0f1252df0bba6c3fbef707f1f982b7 (patch)
treebe59a33798a3d22f4fddfbfcb351db2f2788fdcc /server
parent07e4072773230ef227392a95fccddbc8d892986b (diff)
downloadisc-dhcp-fed0952fbb0f1252df0bba6c3fbef707f1f982b7.tar.gz
chaddr was not being set on all paths leading to a compiler warning
Diffstat (limited to 'server')
-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;
}