diff --git a/common-algo.c b/common-algo.c
index 6ce1a37cfb49c4941ba94bc48d73af275b491619..ae2102a109d6bf9864d83632fbe1029cc752410d 100644
--- a/common-algo.c
+++ b/common-algo.c
@@ -120,10 +120,10 @@ algo_type sshhashes[] = {
 };
 
 algo_type sshcompress[] = {
-	{"none", DROPBEAR_COMP_NONE, NULL, 1},
 #ifndef DISABLE_ZLIB
 	{"zlib", DROPBEAR_COMP_ZLIB, NULL, 1},
 #endif
+	{"none", DROPBEAR_COMP_NONE, NULL, 1},
 	{NULL, 0, NULL, 0}
 };