summaryrefslogtreecommitdiff
path: root/security/p5-Crypt-OpenSSL-X509/files/patch-X509.xs
blob: e32c9ce0e86a2aaa6c21ad163cbd9af94cc7a8d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- X509.xs.orig	2013-12-01 17:14:25 UTC
+++ X509.xs
@@ -181,7 +181,7 @@ static HV* hv_exts(X509* x509, int no_na
   sv_2mortal((SV*)RETVAL);
   c = X509_get_ext_count(x509);
 
-  if ( ! c > 0 ) {
+  if ( c <= 0 ) {
     croak("No extensions found\n");
   }
 
@@ -860,7 +860,7 @@ extension(x509, i)
 
   c = X509_get_ext_count(x509);
 
-  if (!c > 0) {
+  if (c <= 0) {
     croak("No extensions found\n");
   } else if (i >= c || i < 0) {
     croak("Requested extension index out of range\n");