From: W.C.A. Wijngaards Date: Tue, 3 Dec 2019 15:34:53 +0000 (+0100) Subject: - Fix Bad Indentation, in dnscrypt.c, X-Git-Tag: release-1.9.6rc1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a7ebfabcf5372a7524d9cb37959ccac3ce3e1e0;p=thirdparty%2Funbound.git - Fix Bad Indentation, in dnscrypt.c, reported by X41 D-Sec. --- diff --git a/dnscrypt/dnscrypt.c b/dnscrypt/dnscrypt.c index 4a1bd1a10..173d26c95 100644 --- a/dnscrypt/dnscrypt.c +++ b/dnscrypt/dnscrypt.c @@ -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); diff --git a/doc/Changelog b/doc/Changelog index d6f33069c..574c469c9 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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(),