diff options
author | Thomas Markwalder <tmark@isc.org> | 2016-02-18 11:21:42 -0500 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2016-02-18 11:21:42 -0500 |
commit | 45086eef45e6abf1937468820f71d1fbdba5f8e8 (patch) | |
tree | fb4bbe4f27ef7808dd5663cf640f43ef7e39b07a /server/dhcpv6.c | |
parent | 0ba7d5fc15bb057f0cc9afa2e321756e901df269 (diff) | |
download | isc-dhcp-45086eef45e6abf1937468820f71d1fbdba5f8e8.tar.gz |
[master] Fixed several minor Coverity issues
Merges in rt35144.
Diffstat (limited to 'server/dhcpv6.c')
-rw-r--r-- | server/dhcpv6.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/server/dhcpv6.c b/server/dhcpv6.c index f6bf15c9..d85d0b07 100644 --- a/server/dhcpv6.c +++ b/server/dhcpv6.c @@ -5424,7 +5424,6 @@ iterate_over_ia_na(struct data_string *reply_ret, struct data_string cli_enc_opt_data; struct option_state *cli_enc_opt_state; struct host_decl *host; - struct option_state *host_opt_state; struct data_string iaaddr; struct data_string fixed_addr; char reply_data[65536]; @@ -5445,7 +5444,6 @@ iterate_over_ia_na(struct data_string *reply_ret, cli_enc_opt_state = NULL; memset(&iaaddr, 0, sizeof(iaaddr)); memset(&fixed_addr, 0, sizeof(fixed_addr)); - host_opt_state = NULL; lease = NULL; /* @@ -5658,9 +5656,6 @@ exit: if (lease != NULL) { iasubopt_dereference(&lease, MDL); } - if (host_opt_state != NULL) { - option_state_dereference(&host_opt_state, MDL); - } if (fixed_addr.buffer != NULL) { data_string_forget(&fixed_addr, MDL); } @@ -5933,7 +5928,6 @@ iterate_over_ia_pd(struct data_string *reply_ret, struct data_string cli_enc_opt_data; struct option_state *cli_enc_opt_state; struct host_decl *host; - struct option_state *host_opt_state; struct data_string iaprefix; char reply_data[65536]; int reply_ofs; @@ -5951,7 +5945,6 @@ iterate_over_ia_pd(struct data_string *reply_ret, memset(&cli_enc_opt_data, 0, sizeof(cli_enc_opt_data)); cli_enc_opt_state = NULL; memset(&iaprefix, 0, sizeof(iaprefix)); - host_opt_state = NULL; prefix = NULL; /* @@ -6131,9 +6124,6 @@ exit: if (prefix != NULL) { iasubopt_dereference(&prefix, MDL); } - if (host_opt_state != NULL) { - option_state_dereference(&host_opt_state, MDL); - } if (iaprefix.buffer != NULL) { data_string_forget(&iaprefix, MDL); } |