aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-05-02 21:52:59 (GMT)
committerJouni Malinen <j@w1.fi>2015-05-03 13:32:40 (GMT)
commit354e3f7959b5e01c919e8a3a1b366b4d35bc5a33 (patch)
treea767f94801f1c8f1d92f6e35bf21b3839ca4e94c /src/tls
parent87fcb5a735f0deb2c7528e363f27c09d2e501ba3 (diff)
downloadhostap-354e3f7959b5e01c919e8a3a1b366b4d35bc5a33.zip
hostap-354e3f7959b5e01c919e8a3a1b366b4d35bc5a33.tar.gz
hostap-354e3f7959b5e01c919e8a3a1b366b4d35bc5a33.tar.bz2
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>
Diffstat (limited to 'src/tls')
-rw-r--r--src/tls/x509v3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tls/x509v3.c b/src/tls/x509v3.c
index 742af32..b51dfcd 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;
}