summaryrefslogtreecommitdiffstats
path: root/libraries/wvstreams/patches/04_signed_request.diff
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/wvstreams/patches/04_signed_request.diff')
-rw-r--r--libraries/wvstreams/patches/04_signed_request.diff18
1 files changed, 18 insertions, 0 deletions
diff --git a/libraries/wvstreams/patches/04_signed_request.diff b/libraries/wvstreams/patches/04_signed_request.diff
new file mode 100644
index 0000000000..354c85a65f
--- /dev/null
+++ b/libraries/wvstreams/patches/04_signed_request.diff
@@ -0,0 +1,18 @@
+Description: fix return type checking of X509_REQ_verify
+Author: Moritz Mühlenhoff <jmm@debian.org>
+Bug: https://code.google.com/p/wvstreams/issues/detail?id=40
+Bug-Debian: http://bugs.debian.org/513539
+Forwarded: yes
+Last-Update: 2013-10-30
+
+--- a/crypto/wvx509.cc
++++ b/crypto/wvx509.cc
+@@ -325,7 +325,7 @@
+ }
+
+ int verify_result = X509_REQ_verify(certreq, pk);
+- if (verify_result == 0)
++ if (verify_result == 0 || verify_result == -1)
+ {
+ debug(WvLog::Warning, "Self signed request failed");
+ X509_REQ_free(certreq);