Add reference ChaCha20 and Poly1305 implementations.
[openssl.git] / crypto / asn1 / asn1_lib.c
index ef9223c485b7fa8a57762245dae121c9b7ce8bc4..56fd9bf4c3c52175ee9e8fff0d27585625dd604a 100644 (file)
@@ -296,7 +296,7 @@ ASN1_STRING *ASN1_STRING_dup(const ASN1_STRING *str)
     if (!str)
         return NULL;
     ret = ASN1_STRING_new();
-    if (!ret)
+    if (ret == NULL)
         return NULL;
     if (!ASN1_STRING_copy(ret, str)) {
         ASN1_STRING_free(ret);