Fixed issue where DRBG_CTR fails if NO_DF is used - when entropy is called
[openssl.git] / crypto / asn1 / a_type.c
index 42dbcbfffca4524c41e9a8ca0ba349139516f85a..0c7aebe3076b4ea4bba0fd2a633186a774ef6868 100644 (file)
 int ASN1_TYPE_get(const ASN1_TYPE *a)
 {
     if ((a->value.ptr != NULL) || (a->type == V_ASN1_NULL))
-        return (a->type);
+        return a->type;
     else
-        return (0);
+        return 0;
 }
 
 void ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value)
 {
     if (a->value.ptr != NULL) {
         ASN1_TYPE **tmp_a = &a;
-        asn1_primitive_free((ASN1_VALUE **)tmp_a, NULL);
+        asn1_primitive_free((ASN1_VALUE **)tmp_a, NULL, 0);
     }
     a->type = type;
     if (type == V_ASN1_BOOLEAN)