summaryrefslogtreecommitdiffhomepage
path: root/sysoptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysoptions.h')
-rw-r--r--sysoptions.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysoptions.h b/sysoptions.h
index a587762..8a359fb 100644
--- a/sysoptions.h
+++ b/sysoptions.h
@@ -251,4 +251,10 @@
#define USE_VFORK
#endif /* don't HAVE_FORK */
+#if MAX_UNAUTH_CLIENTS > MAX_CHANNELS
+#define DROPBEAR_LISTEN_BACKLOG MAX_UNAUTH_CLIENTS
+#else
+#define DROPBEAR_LISTEN_BACKLOG MAX_CHANNELS
+#endif
+
/* no include guard for this file */