diff options
author | Lorenz Quack <don@amberfisharts.com> | 2009-10-16 20:24:20 -0400 |
---|---|---|
committer | Dwayne C. Litzenberger <dlitz@dlitz.net> | 2009-10-16 20:25:33 -0400 |
commit | a7748d0e65fe17fbcb20f7b086536c3ccf68de43 (patch) | |
tree | 09d62a7b3f4aaaba95a41978da0a348852559fc2 | |
parent | 4cf61f7ebbf7a4985dac5115ae667967b3db0848 (diff) | |
download | pycrypto-a7748d0e65fe17fbcb20f7b086536c3ccf68de43.tar.gz |
block_template.c: Re-acquire the GIL during a nasty error casev2.1.0alpha2
This error should never occur, but we might as well handle it properly anyway.
This fixes https://bugs.launchpad.net/pycrypto/+bug/452195
-rw-r--r-- | src/block_template.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/block_template.c b/src/block_template.c index ec03f94..0448044 100644 --- a/src/block_template.c +++ b/src/block_template.c @@ -468,6 +468,7 @@ ALG_Encrypt(ALGobject *self, PyObject *args) break; default: + Py_BLOCK_THREADS; PyErr_Format(PyExc_SystemError, "Unknown ciphertext feedback mode %i; " "this shouldn't happen", @@ -632,6 +633,7 @@ ALG_Decrypt(ALGobject *self, PyObject *args) break; default: + Py_BLOCK_THREADS; PyErr_Format(PyExc_SystemError, "Unknown ciphertext feedback mode %i; " "this shouldn't happen", |