summaryrefslogtreecommitdiff
path: root/server/failover.c
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2016-02-18 11:21:42 -0500
committerThomas Markwalder <tmark@isc.org>2016-02-18 11:21:42 -0500
commit45086eef45e6abf1937468820f71d1fbdba5f8e8 (patch)
treefb4bbe4f27ef7808dd5663cf640f43ef7e39b07a /server/failover.c
parent0ba7d5fc15bb057f0cc9afa2e321756e901df269 (diff)
downloadisc-dhcp-45086eef45e6abf1937468820f71d1fbdba5f8e8.tar.gz
[master] Fixed several minor Coverity issues
Merges in rt35144.
Diffstat (limited to 'server/failover.c')
-rw-r--r--server/failover.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/server/failover.c b/server/failover.c
index f6e9a6d7..b2cfa5c2 100644
--- a/server/failover.c
+++ b/server/failover.c
@@ -5497,8 +5497,7 @@ secondary_not_hoarding(dhcp_failover_state_t *state, struct pool *p) {
isc_result_t dhcp_failover_process_bind_ack (dhcp_failover_state_t *state,
failover_message_t *msg)
{
- struct lease *lt = (struct lease *)0;
- struct lease *lease = (struct lease *)0;
+ struct lease *lease = NULL;
struct iaddr ia;
const char *message = "no memory";
u_int32_t pot_expire;
@@ -5646,9 +5645,6 @@ isc_result_t dhcp_failover_process_bind_ack (dhcp_failover_state_t *state,
out:
lease_dereference (&lease, MDL);
- if (lt)
- lease_dereference (&lt, MDL);
-
return ISC_R_SUCCESS;
bad: