]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mail-crypt: Remove dead assigment
authorAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 29 Nov 2016 22:28:08 +0000 (00:28 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 29 Nov 2016 22:33:10 +0000 (00:33 +0200)
src/plugins/mail-crypt/mail-crypt-key.c

index 76b92a9174d9f92fb658fc3fe5ab45ddc8d6570c..273970f511fc125934395909aab38606f16ca496 100644 (file)
@@ -1061,8 +1061,6 @@ int mail_crypt_box_generate_keypair(struct mailbox *box,
                dcrypt_key_ref_public(user_key);
        }
 
-       ret = 0;
-
        if ((ret = mail_crypt_generate_keypair(curve, pair, pubid_r, error_r)) < 0) {
                /* failed */
        } else if ((ret = mail_crypt_box_set_keys(box, *pubid_r,