From: Jouni Malinen Date: Sat, 2 May 2015 21:52:59 +0000 (+0300) Subject: TLS: Fix debug dump of X.509 certificate X-Git-Tag: hostap_2_5~771 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=354e3f7959b5e01c919e8a3a1b366b4d35bc5a33;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/tls/x509v3.c b/src/tls/x509v3.c index 742af328c..b51dfcd44 100644 --- a/src/tls/x509v3.c +++ b/src/tls/x509v3.c @@ -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; }