Commit bdd92f4d authored by Matt Caswell's avatar Matt Caswell
Browse files

Check a return value for success in ec_field_size()

parent 1829ff4b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -48,7 +48,8 @@ static size_t ec_field_size(const EC_GROUP *group)
    if (p == NULL || a == NULL || b == NULL)
       goto done;

    EC_GROUP_get_curve_GFp(group, p, a, b, NULL);
    if (!EC_GROUP_get_curve_GFp(group, p, a, b, NULL))
        goto done;
    field_size = (BN_num_bits(p) + 7) / 8;

 done: