From a8af4d20dc4a2420df506893292eb7de1ba395b5 Mon Sep 17 00:00:00 2001 From: Sage Stefonic Date: Thu, 13 Jun 2024 13:52:05 -0700 Subject: [PATCH] fix mistake in SSLEngine debug logs --- src/java/com/wolfssl/provider/jsse/WolfSSLEngine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/com/wolfssl/provider/jsse/WolfSSLEngine.java b/src/java/com/wolfssl/provider/jsse/WolfSSLEngine.java index 8373eab1..2dd53c5f 100644 --- a/src/java/com/wolfssl/provider/jsse/WolfSSLEngine.java +++ b/src/java/com/wolfssl/provider/jsse/WolfSSLEngine.java @@ -554,7 +554,7 @@ public synchronized SSLEngineResult wrap(ByteBuffer[] in, int ofst, int len, WolfSSLDebug.log(getClass(), WolfSSLDebug.INFO, "ByteBuffer in["+i+"].position(): " + in[i].position()); WolfSSLDebug.log(getClass(), WolfSSLDebug.INFO, - "ByteBuffer in["+i+"].limit(): " + in[i].position()); + "ByteBuffer in["+i+"].limit(): " + in[i].limit()); } WolfSSLDebug.log(getClass(), WolfSSLDebug.INFO, "ofst: " + ofst + ", len: " + len); @@ -675,7 +675,7 @@ else if (produced == 0) { WolfSSLDebug.log(getClass(), WolfSSLDebug.INFO, "ByteBuffer in["+i+"].position(): " + in[i].position()); WolfSSLDebug.log(getClass(), WolfSSLDebug.INFO, - "ByteBuffer in["+i+"].limit(): " + in[i].position()); + "ByteBuffer in["+i+"].limit(): " + in[i].limit()); } WolfSSLDebug.log(getClass(), WolfSSLDebug.INFO, "ofst: " + ofst + ", len: " + len);