aboutsummaryrefslogtreecommitdiff
path: root/rpkid
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2013-08-27 15:05:27 +0000
committerRob Austein <sra@hactrn.net>2013-08-27 15:05:27 +0000
commitc1ba691ba4787516b8c0f02028c5d799ba93424f (patch)
treeaa90e01b8892a74ad7795c203e265003c3fb3dd0 /rpkid
parent3468d88b12cade9278353069d8678b1b3df27b04 (diff)
Doh, simpler.
svn path=/trunk/; revision=5468
Diffstat (limited to 'rpkid')
-rw-r--r--rpkid/ext/POW.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpkid/ext/POW.c b/rpkid/ext/POW.c
index 00fc3cde..ebe2fa52 100644
--- a/rpkid/ext/POW.c
+++ b/rpkid/ext/POW.c
@@ -3746,7 +3746,7 @@ x509_store_ctx_object_new(PyTypeObject *type, GCC_UNUSED PyObject *args, GCC_UNU
static int
x509_store_ctx_object_init(x509_store_ctx_object *self, PyObject *args, GCC_UNUSED PyObject *kwds)
{
- x509_store_object *store = (x509_store_object *) Py_None;
+ x509_store_object *store = NULL;
if (!PyArg_ParseTuple(args, "|O!", &POW_X509Store_Type, &store))
goto error;
@@ -3761,7 +3761,7 @@ x509_store_ctx_object_init(x509_store_ctx_object *self, PyObject *args, GCC_UNUS
lose_openssl_error("Couldn't set X509_STORE_CTX ex_data");
Py_XDECREF(self->store);
- self->store = ((PyObject *) store == Py_None) ? NULL : store;
+ self->store = store;
Py_XINCREF(self->store);
X509_VERIFY_PARAM_set_flags(self->ctx->param, X509_V_FLAG_X509_STRICT);