From d2917cb2131b9b08fa6457b195606fcc0220eef1 Mon Sep 17 00:00:00 2001
From: Victor Wagner <wagner@atlas-kard.ru>
Date: Fri, 24 Oct 2014 12:55:12 +0400
Subject: [PATCH] Fix X509 construcor

---
 ctypescrypto/x509.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ctypescrypto/x509.py b/ctypescrypto/x509.py
index 384bb27..04addad 100644
--- a/ctypescrypto/x509.py
+++ b/ctypescrypto/x509.py
@@ -60,6 +60,7 @@ class X509:
 			self.cert = ptr
 		elif data is None:
 			raise TypeError("data argument is required")
+		else:
 			b=Membio(data)
 			if format == "PEM":
 				self.cert=libcrypto.PEM_read_bio_X509(b.bio,None,None,None)
-- 
2.39.5