Commit 62ca5158c7da4e81bca7a6eb07df3956e6c8ec14

czurnieden 2019-04-03T21:22:51

corrected C&P induced problem

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bn_mp_decr.c b/bn_mp_decr.c
index d35b7ff..b57f5d0 100644
--- a/bn_mp_decr.c
+++ b/bn_mp_decr.c
@@ -30,7 +30,7 @@ int mp_decr(mp_int *a)
       if (!IS_ZERO(a)) {
          a->sign = MP_NEG;
       }
-      a->sign = MP_NEG;
+      return MP_OKAY;
    } else if (a->dp[0] > 1uL) {
       a->dp[0]--;
       if (a->dp[0] == 0) {