Blame SOURCES/python-nss-set_certificate_db.patch

1677ba
# HG changeset patch
1677ba
# User John Dennis <jdennis@redhat.com>
1677ba
# Date 1434146562 14400
1677ba
#      Fri Jun 12 18:02:42 2015 -0400
1677ba
# Node ID 932c56dbe8dbf74ca90461770f40c4ae2c79fe62
1677ba
# Parent  6096d0660e2abefcee12e502fed029663d435c54
1677ba
SSLSocket.set_certificate_db() fails with TypeError
1677ba
1677ba
Resolves bug
1677ba
https://bugzilla.redhat.com/show_bug.cgi?id=1230584
1677ba
1677ba
The PyArg_ParseTuple parameters were incorrectly specified,
1677ba
it passed a type instead of a pointer to type.
1677ba
1677ba
diff --git a/src/py_ssl.c b/src/py_ssl.c
1677ba
--- a/src/py_ssl.c
1677ba
+++ b/src/py_ssl.c
1677ba
@@ -1638,7 +1638,7 @@
1677ba
 {
1677ba
     CertDB *py_certdb = NULL;
1677ba
 
1677ba
-    if (!PyArg_ParseTuple(args, "O!:set_certificate_db", CertDBType, &py_certdb))
1677ba
+    if (!PyArg_ParseTuple(args, "O!:set_certificate_db", &CertDBType, &py_certdb))
1677ba
         return NULL;
1677ba
 
1677ba
     if (SSL_CertDBHandleSet(self->pr_socket, py_certdb->handle) != SECSuccess) {