- Fixed correct printing of serial number '00'
This commit is contained in:
parent
b8ba90b316
commit
9304880e8a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue