openssh/openssh-5.4p1-sftp-leak.diff

13 lines
459 B
Diff
Raw Normal View History

Index: openssh-5.4p1/sftp-client.c
===================================================================
--- openssh-5.4p1.orig/sftp-client.c
+++ openssh-5.4p1/sftp-client.c
@@ -713,6 +713,7 @@ do_realpath(struct sftp_conn *conn, char
u_int status = buffer_get_int(&msg);
error("Couldn't canonicalise: %s", fx2txt(status));
+ buffer_free(&msg);
return(NULL);
} else if (type != SSH2_FXP_NAME)
fatal("Expected SSH2_FXP_NAME(%u) packet, got %u",