Hello,

this diff fixes a memory leak in OpenSSH.
I have compiled it, but could not test the
code path.

This function is always called with an
already initialized buffer.

bye,
Jan

Index: authfile.c
===================================================================
RCS file: /mount/cvsdev/cvs/openbsd/src/usr.bin/ssh/authfile.c,v
retrieving revision 1.92
diff -u -w -p -r1.92 authfile.c
--- authfile.c  14 Jun 2011 22:49:18 -0000      1.92
+++ authfile.c  17 Jan 2012 10:13:53 -0000
@@ -329,7 +329,7 @@ key_load_file(int fd, const char *filena
                    filename == NULL ? "" : " ");
                return 0;
        }
-       buffer_init(blob);
+       buffer_clear(blob);
        for (;;) {
                if ((len = atomicio(read, fd, buf, sizeof(buf))) == 0) {
                        if (errno == EPIPE)

Reply via email to