[Rpm-maint] [rpm-software-management/rpm] Crash with libgcrypt enabled (#968)

Ross Burton notifications at github.com
Wed Dec 4 15:41:23 UTC 2019


Looks like this patch solves the problem for me:

```
diff --git a/rpmio/digest_libgcrypt.c b/rpmio/digest_libgcrypt.c
index b31fda569..3ec2082cf 100644
--- a/rpmio/digest_libgcrypt.c
+++ b/rpmio/digest_libgcrypt.c
@@ -19,8 +19,10 @@ struct DIGEST_CTX_s {
 
 /****************************  init   ************************************/
 
+GCRY_THREAD_OPTION_PTHREAD_IMPL;
+
 int rpmInitCrypto(void) {
-    return 0;
+    return gcry_err_code_to_errno(gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread));
 }
 
 int rpmFreeCrypto(void) {
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/968#issuecomment-561701383
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20191204/8a8db819/attachment.html>


More information about the Rpm-maint mailing list