diff options
author | David Hankins <dhankins@isc.org> | 2007-05-17 18:27:11 +0000 |
---|---|---|
committer | David Hankins <dhankins@isc.org> | 2007-05-17 18:27:11 +0000 |
commit | 6705543f811dde8e80d8de814b78b66b51ecf01d (patch) | |
tree | 431ca051ecf5a2d2c35542803f311cec618fb2c1 /server/ddns.c | |
parent | 94f9feeafe65d137a79f56bbd9f1dc83669c7a7f (diff) | |
download | isc-dhcp-6705543f811dde8e80d8de814b78b66b51ecf01d.tar.gz |
- Additional warnings and such from robie. [ISC-Bugs #16865d]
Diffstat (limited to 'server/ddns.c')
-rw-r--r-- | server/ddns.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/server/ddns.c b/server/ddns.c index 300f5431..24604b0f 100644 --- a/server/ddns.c +++ b/server/ddns.c @@ -34,7 +34,7 @@ #ifndef lint static char copyright[] = -"$Id: ddns.c,v 1.27 2007/05/08 23:05:21 dhankins Exp $ Copyright (c) 2004-2005 Internet Systems Consortium. All rights reserved.\n"; +"$Id: ddns.c,v 1.28 2007/05/17 18:27:11 dhankins Exp $ Copyright (c) 2004-2005 Internet Systems Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -253,8 +253,11 @@ ddns_updates(struct packet *packet, struct lease *lease, struct lease *old, scope = &(lease6->scope); memcpy(addr.iabuf, lease6->addr.s6_addr, 16); addr.len = 16; - } else + } else { log_fatal("Impossible condition at %s:%d.", MDL); + /* Silence compiler warnings. */ + return 0; + } memset(&d1, 0, sizeof(d1)); memset (&ddns_hostname, 0, sizeof (ddns_hostname)); @@ -489,8 +492,11 @@ ddns_updates(struct packet *packet, struct lease *lease, struct lease *old, * 32 hex characters separated by dots. */ rev_name_len = 64; - } else + } else { log_fatal("invalid address length %d", addr.len); + /* Silence compiler warnings. */ + return 0; + } oc = lookup_option(&server_universe, options, SV_DDNS_REV_DOMAIN_NAME); if (oc) |