From: Mark Wooding Date: Mon, 14 Oct 2019 00:03:58 +0000 (+0100) Subject: algorithms.c (ShakeNN.copy): Return the copy rather than the original. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/commitdiff_plain/9b5c9816d970d9c1f74d5f99e6f6d700e47eed6e algorithms.c (ShakeNN.copy): Return the copy rather than the original. --- diff --git a/algorithms.c b/algorithms.c index 24ebd74..61459a1 100644 --- a/algorithms.c +++ b/algorithms.c @@ -1880,7 +1880,7 @@ static PyObject *shakemeth_copy(PyObject *me, PyObject *arg) rc->h = *SHAKE_H(me); rc->st = SHAKE_ST(me); end: - return ((PyObject *)me); + return ((PyObject *)rc); } static PyObject *shakemeth_get(PyObject *me, PyObject *arg)