aboutsummaryrefslogtreecommitdiff
path: root/sand-leek.c
diff options
context:
space:
mode:
Diffstat (limited to 'sand-leek.c')
-rw-r--r--sand-leek.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sand-leek.c b/sand-leek.c
index 04bc304..690da62 100644
--- a/sand-leek.c
+++ b/sand-leek.c
@@ -194,8 +194,10 @@ work(void *arg) {
/* much tidier to be honest */
BN_set_word(rsa_key->e, e);
#endif
- /* FIXME check for errors */
- key_update_d(rsa_key);
+ if (key_update_d(rsa_key)) {
+ printf("Error updating d component of RSA key, stop.\n");
+ goto STOP;
+ }
if (RSA_check_key(rsa_key) == 1) {
fprintf(stderr, "Key valid\n");