eet_cipher.c: Fix arithmetic pointer on void *

SVN revision: 45211
This commit is contained in:
Vincent Torri 2010-01-16 12:07:18 +00:00
parent 7c0e622466
commit 15d7b45c23
2 changed files with 5 additions and 1 deletions

View File

@ -305,3 +305,7 @@
2010-01-15 Cedric BAIL
* Fix amalgamation.
2010-01-16 Vincent Torri
* eet_cipher.c: Fix arithmetic pointer on void *

View File

@ -553,7 +553,7 @@ eet_identity_check(const void *data_base, unsigned int data_length,
if (sign_len + cert_len + sizeof(int) * 3 > signature_length) return NULL;
/* Update the signature and certificate pointer */
sign = signature_base + sizeof(int) * 3;
sign = (unsigned char *)signature_base + sizeof(int) * 3;
cert_der = sign + sign_len;
# ifdef HAVE_GNUTLS