mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 16:05:43 +01:00
- Fixed correct printing of serial number '00'
This commit is contained in:
parent
b8ba90b316
commit
9304880e8a
@ -2426,7 +2426,7 @@ int x509parse_serial_gets( char *buf, size_t size, const x509_buf *serial )
|
||||
|
||||
for( i = 0; i < nr; i++ )
|
||||
{
|
||||
if( i == 0 && serial->p[i] == 0x0 )
|
||||
if( i == 0 && nr > 1 && serial->p[i] == 0x0 )
|
||||
continue;
|
||||
|
||||
ret = snprintf( p, n, "%02X%s",
|
||||
|
Loading…
Reference in New Issue
Block a user