New err_code.pl script to retain old error codes. This should allow the use
[oweals/openssl.git] / crypto / bn / bn_lib.c
index c027d0b03e250b9775f9beca9f01676f6b3acc47..d8d2c3297d828b198d1f215e14927908e65f9a23 100644 (file)
@@ -341,6 +341,9 @@ BN_CTX *c;
        {
        int i;
 
+       if(c == NULL)
+           return;
+
        for (i=0; i<BN_CTX_NUM; i++)
                BN_clear_free(&(c->bn[i]));
        if (c->flags & BN_FLG_MALLOCED)