crypt.c: Remove condition which is always true.
authorAndre Noll <maan@systemlinux.org>
Sun, 7 Jul 2013 16:51:18 +0000 (18:51 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 4 Sep 2013 22:23:13 +0000 (22:23 +0000)
rsa can never be NULL here.

crypt.c

diff --git a/crypt.c b/crypt.c
index b8577df..5445138 100644 (file)
--- a/crypt.c
+++ b/crypt.c
@@ -147,8 +147,7 @@ static int read_rsa_bignums(const unsigned char *blob, int blen, RSA **result)
        *result = rsa;
        return 1;
 fail:
-       if (rsa)
-               RSA_free(rsa);
+       RSA_free(rsa);
        return ret;
 }