Commit f1e2b8ad authored by Richard Levitte's avatar Richard Levitte
Browse files

crypto/engine/eng_cryptodev.c: don't treat a void* like an array



The void* needs to be cast to a char* first.

Fixes #5614

Reviewed-by: default avatarTim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5615)
parent e56585e3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1057,7 +1057,7 @@ static int crparam2bn(struct crparam *crp, BIGNUM *a)
        return (-1);

    for (i = 0; i < bytes; i++)
        pd[i] = crp->crp_p[bytes - i - 1];
        pd[i] = ((char *)crp->crp_p)[bytes - i - 1];

    BN_bin2bn(pd, bytes, a);
    free(pd);