]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix Bad Indentation, in dnscrypt.c,
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 3 Dec 2019 15:34:53 +0000 (16:34 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 3 Dec 2019 15:34:53 +0000 (16:34 +0100)
  reported by X41 D-Sec.

dnscrypt/dnscrypt.c
doc/Changelog

index 4a1bd1a10cbacefc9c214f4a01c4b3fe303a10bf..173d26c9524f5c001808da16c8fb698bacdfcee9 100644 (file)
@@ -316,15 +316,15 @@ dnscrypt_server_uncurve(struct dnsc_env* env,
 #else
             return -1;
 #endif
-    } else {
-        if (crypto_box_beforenm(nmkey,
-                                query_header->publickey,
-                                cert->keypair->crypt_secretkey) != 0) {
-            return -1;
-        }
-    }
-    // Cache the shared secret we just computed.
-    dnsc_shared_secret_cache_insert(env->shared_secrets_cache,
+       } else {
+           if (crypto_box_beforenm(nmkey,
+                                   query_header->publickey,
+                                   cert->keypair->crypt_secretkey) != 0) {
+               return -1;
+           }
+       }
+        // Cache the shared secret we just computed.
+        dnsc_shared_secret_cache_insert(env->shared_secrets_cache,
                                     key,
                                     hash,
                                     nmkey);
index d6f33069c712747ec1cbe57cd1ac126d2b0c3c48..574c469c9f5cf813b5ad7b68736e3a7f5b025e77 100644 (file)
@@ -24,6 +24,8 @@
          This further lowers the max to 256.
        - Fix snprintf() supports the n-specifier,
          reported by X41 D-Sec.
+       - Fix Bad Indentation, in dnscrypt.c,
+         reported by X41 D-Sec.
 
 2 December 2019: Wouter
        - Merge pull request #122 from he32: In tcp_callback_writer(),