Fix typo and avoid warning.
[openssl.git] / crypto / asn1 / a_type.c
index 52523d210afa429e03b7405f709138412d2df197..90f14241e757f9ff52f12c2f66ed065c753039a5 100644 (file)
@@ -100,7 +100,7 @@ int ASN1_TYPE_set1(ASN1_TYPE *a, int type, const void *value)
        else
                {
                ASN1_STRING *sdup;
-               sdup = ASN1_STRING_dup(sdup);
+               sdup = ASN1_STRING_dup(value);
                if (!sdup)
                        return 0;
                ASN1_TYPE_set(a, type, sdup);