chiark
/
gitweb
/
~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ec.c: Don't lose error status when constructing points from a sequence.
[catacomb-python]
/
ec.c
diff --git
a/ec.c
b/ec.c
index f0747a8d123a8ac51e0f251d81dc95f47c20b53f..361bbf5288674c07033c06460804480696c7857a 100644
(file)
--- a/
ec.c
+++ b/
ec.c
@@
-473,6
+473,7
@@
static int ecptxl_1(ec_curve *c, ec *p, PyObject *x)
(n == 3 && (z = PySequence_GetItem(t, 2)) == 0))
goto end;
rc = (n == 2) ? ecptxl_2(c, p, x, y) : ecptxl_3(c, p, x, y, z);
(n == 3 && (z = PySequence_GetItem(t, 2)) == 0))
goto end;
rc = (n == 2) ? ecptxl_2(c, p, x, y) : ecptxl_3(c, p, x, y, z);
+ goto end;
} else
TYERR("can't convert to curve point");
goto ok;
} else
TYERR("can't convert to curve point");
goto ok;