Some C compilers produce warnings or compilation errors if an attempt
[oweals/openssl.git] / crypto / asn1 / asn1_lib.c
index 504e612a853b4231d68d8f13d8a30f2667a59bd2..bb94257cee34ae74bac2061ff837f2a5620c7e9b 100644 (file)
@@ -378,6 +378,7 @@ int ASN1_STRING_set(ASN1_STRING *str, const void *_data, int len)
 
                if (str->data == NULL)
                        {
+                       ASN1err(ASN1_F_ASN1_STRING_SET,ERR_R_MALLOC_FAILURE);
                        str->data=c;
                        return(0);
                        }