]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 b8577dfc5ab164a5f0b382273aab1c8083a05ef1..5445138d53f6589ebce6645b027531f02b74c860 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;
 }