1Index: wvstreams-4.6/crypto/wvx509.cc
2===================================================================
3--- wvstreams-4.6.orig/crypto/wvx509.cc	2009-07-29 11:58:16.000000000 -0400
4+++ wvstreams-4.6/crypto/wvx509.cc	2009-07-29 11:58:43.000000000 -0400
5@@ -325,7 +325,7 @@
6     }
7
8     int verify_result = X509_REQ_verify(certreq, pk);
9-    if (verify_result == 0)
10+    if (verify_result == 0 || verify_result == -1)
11     {
12 	debug(WvLog::Warning, "Self signed request failed");
13 	X509_REQ_free(certreq);
14