summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2017-12-18 13:50:03 -0500
committerThomas Markwalder <tmark@isc.org>2017-12-18 13:50:03 -0500
commite8b058cfa5bc027201f8d9924e419964e5c1e0ac (patch)
tree79a0aaf6aced72cf93abde9bbbac54bab3b83e4d /client
parent1e80a731f0b8755b527b37a3e7e5a96938188273 (diff)
downloadisc-dhcp-e8b058cfa5bc027201f8d9924e419964e5c1e0ac.tar.gz
[master] Fixes minor coverity issues
Merges in rt46836
Diffstat (limited to 'client')
-rw-r--r--client/dhc6.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/client/dhc6.c b/client/dhc6.c
index b5a35f4b..16a08380 100644
--- a/client/dhc6.c
+++ b/client/dhc6.c
@@ -5141,12 +5141,9 @@ do_decline6(void *input)
decline_done:
/* We here because we've exhausted our retry limits or
* something else has gone wrong with the decline process.
- * So let's just toss the existing lease and start over.
- */
- if (client->active_lease != NULL) {
- dhc6_lease_destroy(&client->active_lease, MDL);
- client->active_lease = NULL;
- }
+ * So let's just toss the existing lease and start over. */
+ dhc6_lease_destroy(&client->active_lease, MDL);
+ client->active_lease = NULL;
start_init6(client);
return;