diff options
Diffstat (limited to 'kex.c')
-rw-r--r-- | kex.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kex.c,v 1.140 2018/07/06 09:06:14 sf Exp $ */ | 1 | /* $OpenBSD: kex.c,v 1.141 2018/07/09 13:37:10 sf Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -741,6 +741,8 @@ choose_comp(struct sshcomp *comp, char *client, char *server) | |||
741 | if (name == NULL) | 741 | if (name == NULL) |
742 | return SSH_ERR_NO_COMPRESS_ALG_MATCH; | 742 | return SSH_ERR_NO_COMPRESS_ALG_MATCH; |
743 | if (strcmp(name, "zlib@openssh.com") == 0) { | 743 | if (strcmp(name, "zlib@openssh.com") == 0) { |
744 | comp->type = COMP_DELAYED; | ||
745 | } else if (strcmp(name, "zlib") == 0) { | ||
744 | comp->type = COMP_ZLIB; | 746 | comp->type = COMP_ZLIB; |
745 | } else if (strcmp(name, "none") == 0) { | 747 | } else if (strcmp(name, "none") == 0) { |
746 | comp->type = COMP_NONE; | 748 | comp->type = COMP_NONE; |