mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 07:25:34 +00:00
Removed unused cur variable in x509_string_to_names()
This commit is contained in:
parent
0e4f9115dc
commit
a9c16d2825
|
@ -43,7 +43,6 @@ int x509_string_to_names( asn1_named_data **head, const char *name )
|
||||||
const char *end = s + strlen( s );
|
const char *end = s + strlen( s );
|
||||||
const char *oid = NULL;
|
const char *oid = NULL;
|
||||||
int in_tag = 1;
|
int in_tag = 1;
|
||||||
asn1_named_data *cur;
|
|
||||||
|
|
||||||
/* Clear existing chain if present */
|
/* Clear existing chain if present */
|
||||||
asn1_free_named_data_list( head );
|
asn1_free_named_data_list( head );
|
||||||
|
@ -84,9 +83,9 @@ int x509_string_to_names( asn1_named_data **head, const char *name )
|
||||||
|
|
||||||
if( !in_tag && ( *c == ',' || c == end ) )
|
if( !in_tag && ( *c == ',' || c == end ) )
|
||||||
{
|
{
|
||||||
if( ( cur = asn1_store_named_data( head, oid, strlen( oid ),
|
if( asn1_store_named_data( head, oid, strlen( oid ),
|
||||||
(unsigned char *) s,
|
(unsigned char *) s,
|
||||||
c - s ) ) == NULL )
|
c - s ) == NULL )
|
||||||
{
|
{
|
||||||
return( POLARSSL_ERR_X509_MALLOC_FAILED );
|
return( POLARSSL_ERR_X509_MALLOC_FAILED );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue