Having introduced a new function into the SSH2 compression structure,
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 8 Mar 2001 10:07:22 +0000 (10:07 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 8 Mar 2001 10:07:22 +0000 (10:07 +0000)
it would help if I implemented it in the dummy no-compression case!

git-svn-id: svn://svn.tartarus.org/sgt/putty@987 cda61777-01e9-0310-a592-d414129be87e

ssh.c

diff --git a/ssh.c b/ssh.c
index 801f67f..ea1fe02 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -202,10 +202,12 @@ static int ssh_comp_none_block(unsigned char *block, int len,
                               unsigned char **outblock, int *outlen) {
     return 0;
 }
+static int ssh_comp_none_disable(void) { return 0; }
 const static struct ssh_compress ssh_comp_none = {
     "none",
     ssh_comp_none_init, ssh_comp_none_block,
-    ssh_comp_none_init, ssh_comp_none_block
+    ssh_comp_none_init, ssh_comp_none_block,
+    ssh_comp_none_disable
 };
 extern const struct ssh_compress ssh_zlib;
 const static struct ssh_compress *compressions[] = {