From 9b5c9816d970d9c1f74d5f99e6f6d700e47eed6e Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 14 Oct 2019 01:03:58 +0100 Subject: [PATCH] algorithms.c (ShakeNN.copy): Return the copy rather than the original. --- algorithms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.11.0