commit | 9304880e8a680294fa37cc48d9910fb501763d7e | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Mon Dec 05 14:38:06 2011 +0000 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Mon Dec 05 14:38:06 2011 +0000 |
tree | 481899aa14880bf258ce3de59b2db1dca8a2828e | |
parent | b8ba90b316c3d2637a0ea65e86d08ce39ffb7cd9 [diff] [blame] |
- Fixed correct printing of serial number '00'
diff --git a/library/x509parse.c b/library/x509parse.c index d49b643..d7da8c4 100644 --- a/library/x509parse.c +++ b/library/x509parse.c
@@ -2426,7 +2426,7 @@ 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",