]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/asn1/a_bool.c
i2d_ASN1_BOOLEAN(): correct error module
[thirdparty/openssl.git] / crypto / asn1 / a_bool.c
index 98454f3b404d0925f38e93874d1c6eae9cd67574..3bf676eb6fb5351e060e619e68562724552f4671 100644 (file)
@@ -71,7 +71,7 @@ int i2d_ASN1_BOOLEAN(int a, unsigned char **pp)
 
     if (*pp == NULL) {
         if ((p = allocated = OPENSSL_malloc(r)) == NULL) {
-            ASN1err(ASN1_F_I2D_ASN1_OBJECT, ERR_R_MALLOC_FAILURE);
+            ASN1err(ASN1_F_I2D_ASN1_BOOLEAN, ERR_R_MALLOC_FAILURE);
             return 0;
         }
     } else {