Hello,

this is a diff which patch a memory leak in OpenSSH.
I have just compiled it without warnings.
I am unable to run this exactly this code path.

bye,
Jan

Index: ssh-pkcs11-client.c
===================================================================
RCS file: /mount/cvsdev/cvs/openbsd/src/usr.bin/ssh/ssh-pkcs11-client.c,v
retrieving revision 1.2
diff -u -w -p -p -w -r1.2 ssh-pkcs11-client.c
--- ssh-pkcs11-client.c 24 Feb 2010 06:12:53 -0000      1.2
+++ ssh-pkcs11-client.c 16 Jan 2012 13:25:20 -0000
@@ -126,6 +126,7 @@ pkcs11_rsa_private_encrypt(int flen, con
                }
                xfree(signature);
        }
+       buffer_free(&msg);
        return (ret);
 }

Reply via email to