summaryrefslogtreecommitdiff
path: root/lib/rpmrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rpmrc.c')
-rw-r--r--lib/rpmrc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rpmrc.c b/lib/rpmrc.c
index d33c9eeb0..d4190e457 100644
--- a/lib/rpmrc.c
+++ b/lib/rpmrc.c
@@ -1672,6 +1672,10 @@ static int rpmReadRC(const char * rcfiles)
int rpmReadConfigFiles(const char * file, const char * target)
{
+ /* Initialize crypto engine as early as possible */
+ if (rpmInitCrypto() < 0) {
+ return -1;
+ }
/* Preset target macros */
/* FIX: target can be NULL */