From 7c3ee3dcfed2d0a9700d0cc8c064e031262e6279 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 1 Jan 2018 23:43:51 +0100 Subject: [PATCH] auth: Init openssl and libsodium before chrooting in pdnsutil --- pdns/pdnsutil.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 05d5dee904..f409fd0591 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -125,6 +125,15 @@ void loadMainConfig(const std::string& configdir) seedRandom(::arg()["entropy-source"]); +#ifdef HAVE_LIBSODIUM + if (sodium_init() == -1) { + cerr<<"Unable to initialize sodium crypto library"<()); -#ifdef HAVE_LIBSODIUM - if (sodium_init() == -1) { - cerr<<"Unable to initialize sodium crypto library"<