summaryrefslogtreecommitdiff
path: root/libdane/dane.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdane/dane.c')
-rw-r--r--libdane/dane.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libdane/dane.c b/libdane/dane.c
index f05f3ce92c..a7236f9f7b 100644
--- a/libdane/dane.c
+++ b/libdane/dane.c
@@ -248,13 +248,13 @@ int dane_state_init(dane_state_t * s, unsigned int flags)
ub_ctx_debugout(ctx, stderr);
if (!(flags & DANE_F_IGNORE_LOCAL_RESOLVER)) {
- if ((ret = ub_ctx_resolvconf(ctx, NULL)) != 0) {
+ if (ub_ctx_resolvconf(ctx, NULL) != 0) {
gnutls_assert();
ret = DANE_E_INITIALIZATION_ERROR;
goto cleanup;
}
- if ((ret = ub_ctx_hosts(ctx, NULL)) != 0) {
+ if (ub_ctx_hosts(ctx, NULL) != 0) {
gnutls_assert();
ret = DANE_E_INITIALIZATION_ERROR;
goto cleanup;
@@ -263,9 +263,8 @@ int dane_state_init(dane_state_t * s, unsigned int flags)
/* read public keys for DNSSEC verification */
if (!(flags & DANE_F_IGNORE_DNSSEC)) {
- if ((ret =
- ub_ctx_add_ta_file(ctx,
- (char *) UNBOUND_ROOT_KEY_FILE)) !=
+ if (ub_ctx_add_ta_file(ctx,
+ (char *) UNBOUND_ROOT_KEY_FILE) !=
0) {
gnutls_assert();
ret = DANE_E_INITIALIZATION_ERROR;