Add an evil cast, because POSIX/SUSv2 define connect(2) require
[oweals/openssl.git] / crypto / asn1 / f_enum.c
index 3bcceecdb8506a674dd9e67b5216d53f82694c22..3d0b1107cba6b5dc0b3ce19205ec11981e5319a0 100644 (file)
@@ -161,7 +161,7 @@ int a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size)
                        if (sp == NULL)
                                {
                                ASN1err(ASN1_F_A2I_ASN1_ENUMERATED,ERR_R_MALLOC_FAILURE);
-                               if (s != NULL) Free((char *)s);
+                               if (s != NULL) Free(s);
                                goto err;
                                }
                        s=sp;