openssh/openssh-5.4p1-sftp-leak.diff
OBS User autobuild 9ad30c5bed Accepting request 40041 from Base:System
Copy from Base:System/openssh based on submit request 40041 from user anicka

OBS-URL: https://build.opensuse.org/request/show/40041
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openssh?expand=0&rev=42
2010-05-14 22:29:46 +00:00

13 lines
459 B
Diff

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",