diff options
Diffstat (limited to 'source/xap/pan/pan.gcc11.diff')
-rw-r--r-- | source/xap/pan/pan.gcc11.diff | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source/xap/pan/pan.gcc11.diff b/source/xap/pan/pan.gcc11.diff new file mode 100644 index 00000000..fe7e6b2f --- /dev/null +++ b/source/xap/pan/pan.gcc11.diff @@ -0,0 +1,20 @@ +--- ./pan/usenet-utils/mime-utils.cc.orig 2019-09-29 16:01:34.000000000 -0500 ++++ ./pan/usenet-utils/mime-utils.cc 2021-08-05 23:56:48.628393544 -0500 +@@ -1749,7 +1749,7 @@ + #ifdef HAVE_GMIME_30 + GMimeObject *gmo; + gmo = g_mime_message_get_mime_part (body); +- if (g_mime_multipart_signed_sign (gpg_ctx, gmo, uid.c_str(), &err) <0) ++ if (g_mime_multipart_signed_sign (gpg_ctx, gmo, uid.c_str(), &err) != 0) + #else + if (g_mime_multipart_signed_sign (mps, GMIME_OBJECT (part), gpg_ctx, uid.c_str(), GMIME_DIGEST_ALGO_SHA1, &err) <0) + #endif +@@ -1784,7 +1784,7 @@ + + #ifdef HAVE_GMIME_30 + if (g_mime_multipart_encrypted_encrypt(gpg_ctx, GMIME_OBJECT (part), sign, uid.c_str(), +- GMIME_ENCRYPT_NONE, rcp, &err) < 0) ++ GMIME_ENCRYPT_NONE, rcp, &err) != 0) + #else + if (g_mime_multipart_encrypted_encrypt(mpe, GMIME_OBJECT (part), gpg_ctx, sign, + uid.c_str(), GMIME_DIGEST_ALGO_SHA1, rcp, &err) < 0) |