There have been a number of complaints from a number of sources that names
[openssl.git] / crypto / pkcs12 / p12_mutl.c
index a335a7b868a092659a9d1b9f8dfbe701febc5721..13d866da51290fca62cba9fef55e187b795e61ff 100644 (file)
@@ -149,7 +149,7 @@ int PKCS12_setup_mac (PKCS12 *p12, int iter, unsigned char *salt, int saltlen,
        }
        if (!saltlen) saltlen = PKCS12_SALT_LEN;
        p12->mac->salt->length = saltlen;
-       if (!(p12->mac->salt->data = Malloc (saltlen))) {
+       if (!(p12->mac->salt->data = OPENSSL_malloc (saltlen))) {
                PKCS12err(PKCS12_F_PKCS12_SETUP_MAC, ERR_R_MALLOC_FAILURE);
                return 0;
        }