diff options
| author | J08nY | 2018-04-09 20:48:04 +0200 |
|---|---|---|
| committer | J08nY | 2018-04-09 20:48:04 +0200 |
| commit | 376ff06154b6364c5983a3f67244c8f2d822a282 (patch) | |
| tree | 2d06864c731abeefe1bc0e8a2d5d0f68b232be92 /src/cm/cm.c | |
| parent | 4662f2e2977e400925b3816d32782d88ccb39504 (diff) | |
| download | ecgen-376ff06154b6364c5983a3f67244c8f2d822a282.tar.gz ecgen-376ff06154b6364c5983a3f67244c8f2d822a282.tar.zst ecgen-376ff06154b6364c5983a3f67244c8f2d822a282.zip | |
Diffstat (limited to 'src/cm/cm.c')
| -rw-r--r-- | src/cm/cm.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/cm/cm.c b/src/cm/cm.c index 587f497..8fa174d 100644 --- a/src/cm/cm.c +++ b/src/cm/cm.c @@ -11,13 +11,18 @@ int cm_do() { debug_log_start("Starting Complex Multiplication method"); + int result = 0; curve_t *curve = custom_curve(); - output_o_begin(); - output_o(curve); - output_o_end(); + if (curve) { + output_o_begin(); + output_o(curve); + output_o_end(); - curve_free(&curve); + curve_free(&curve); + } else { + result = 1; + } debug_log_start("Finished Complex Multiplication method"); - return 0; + return result; } |
