Fix CID : Dead code in encode_key2text.c
@@ -390,7 +390,6 @@ static int ec_param_explicit_gen_to_text(BIO *out, const EC_GROUP *group,
|| EC_POINT_point2bn(group, point, form, gen, ctx) == NULL)
return 0;
- if (gen != NULL) {
switch (form) {
case POINT_CONVERSION_COMPRESSED:
glabel = "Generator (compressed):";
@@ -406,8 +405,6 @@ static int ec_param_explicit_gen_to_text(BIO *out, const EC_GROUP *group,
}
return print_labeled_bignum(out, glabel, gen);
}
- return 1;
-}
/* Print explicit parameters */
static int ec_param_explicit_to_text(BIO *out, const EC_GROUP *group,
