TLS: Fix debug dump of X.509 certificate
The length of the extra data following the encoded certificate was printed out in debug hexdump. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
87fcb5a735
commit
354e3f7959
1 changed files with 1 additions and 1 deletions
|
@ -1511,7 +1511,7 @@ struct x509_certificate * x509_certificate_parse(const u8 *buf, size_t len)
|
|||
if (pos + hdr.length < end) {
|
||||
wpa_hexdump(MSG_MSGDUMP, "X509: Ignoring extra data after DER "
|
||||
"encoded certificate",
|
||||
pos + hdr.length, end - pos + hdr.length);
|
||||
pos + hdr.length, end - (pos + hdr.length));
|
||||
end = pos + hdr.length;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue