free NULL cleanup -- coda
[openssl.git] / demos / engines / ibmca / hw_ibmca.c
index 820abe862ef78d2132d915cc550165283ff78b7f..fb5b8dbad842a381984fca5f1c3ebec730eb0d44 100644 (file)
@@ -596,8 +596,7 @@ static int ibmca_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa)
                                       rsa->dmq1, rsa->iqmp, ctx);
     }
  err:
-    if (ctx)
-        BN_CTX_free(ctx);
+    BN_CTX_free(ctx);
     return to_return;
 }
 #  endif