diff options
Diffstat (limited to 'kex.c')
-rw-r--r-- | kex.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kex.c,v 1.155 2019/10/08 22:40:39 dtucker Exp $ */ | 1 | /* $OpenBSD: kex.c,v 1.156 2020/01/23 10:24:29 dtucker 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 | * |
@@ -798,11 +798,14 @@ choose_comp(struct sshcomp *comp, char *client, char *server) | |||
798 | 798 | ||
799 | if (name == NULL) | 799 | if (name == NULL) |
800 | return SSH_ERR_NO_COMPRESS_ALG_MATCH; | 800 | return SSH_ERR_NO_COMPRESS_ALG_MATCH; |
801 | #ifdef WITH_ZLIB | ||
801 | if (strcmp(name, "zlib@openssh.com") == 0) { | 802 | if (strcmp(name, "zlib@openssh.com") == 0) { |
802 | comp->type = COMP_DELAYED; | 803 | comp->type = COMP_DELAYED; |
803 | } else if (strcmp(name, "zlib") == 0) { | 804 | } else if (strcmp(name, "zlib") == 0) { |
804 | comp->type = COMP_ZLIB; | 805 | comp->type = COMP_ZLIB; |
805 | } else if (strcmp(name, "none") == 0) { | 806 | } else |
807 | #endif /* WITH_ZLIB */ | ||
808 | if (strcmp(name, "none") == 0) { | ||
806 | comp->type = COMP_NONE; | 809 | comp->type = COMP_NONE; |
807 | } else { | 810 | } else { |
808 | error("%s: unsupported compression scheme %s", __func__, name); | 811 | error("%s: unsupported compression scheme %s", __func__, name); |