mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Remove redundant check
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
@ -201,7 +201,7 @@ int mbedtls_mpi_core_read_be( mbedtls_mpi_uint *X,
|
|||||||
|
|
||||||
/* Avoid calling `memcpy` with NULL source or destination argument,
|
/* Avoid calling `memcpy` with NULL source or destination argument,
|
||||||
* even if buflen is 0. */
|
* even if buflen is 0. */
|
||||||
if( buf != NULL && X != NULL )
|
if( buf != NULL )
|
||||||
{
|
{
|
||||||
Xp = (unsigned char*) X;
|
Xp = (unsigned char*) X;
|
||||||
memcpy( Xp + overhead, buf, buflen );
|
memcpy( Xp + overhead, buf, buflen );
|
||||||
|
Reference in New Issue
Block a user