mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Remove a few redundant memset after calloc.
Using the following semantic patch provided by Mansour Moufid: @@ expression x; @@ x = mbedtls_calloc(...) ... - memset(x, 0, ...);
This commit is contained in:
@ -365,7 +365,6 @@ static int x509_get_subject_alt_name( unsigned char **p,
|
||||
return( MBEDTLS_ERR_X509_INVALID_EXTENSIONS +
|
||||
MBEDTLS_ERR_ASN1_MALLOC_FAILED );
|
||||
|
||||
memset( cur->next, 0, sizeof( mbedtls_asn1_sequence ) );
|
||||
cur = cur->next;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user