tomaswolf commented on code in PR #902:
URL: https://github.com/apache/mina-sshd/pull/902#discussion_r3444161042


##########
sshd-core/src/main/java/org/apache/sshd/agent/common/AbstractAgentProxy.java:
##########
@@ -175,7 +176,11 @@ public Map.Entry<String, byte[]> sign(SessionContext 
session, PublicKey key, Str
         } else {
             Buffer buf = new ByteArrayBuffer(signature);
             String algorithm = buf.getString();
-            signature = buf.getBytes();
+            if (key instanceof SecurityKeyPublicKey<?>) {
+                signature = signature.clone();

Review Comment:
   Scratch that; it would still wrap once too often.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to