summaryrefslogtreecommitdiff
path: root/svr-main.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-02-16 23:17:48 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-02-16 23:17:48 +0800
commitc218af6ea78448ab7ec197c00274baff63a8cda9 (patch)
tree51a91b0fa3044d636e6fae0465e75ca2a668d5c8 /svr-main.c
parente0748b19700a0673dc35a632a158ccbd96f9b88c (diff)
parent17be46e229a108d115afe97715e3110aac638dd6 (diff)
downloaddropbear-c218af6ea78448ab7ec197c00274baff63a8cda9.tar.gz
merge
Diffstat (limited to 'svr-main.c')
-rw-r--r--svr-main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/svr-main.c b/svr-main.c
index 0efbd26..a7e447e 100644
--- a/svr-main.c
+++ b/svr-main.c
@@ -83,6 +83,13 @@ static void main_inetd() {
/* Set up handlers, syslog, seed random */
commonsetup();
+#if DEBUG_TRACE
+ if (debug_trace) {
+ /* -v output goes to stderr which would get sent over the inetd network socket */
+ dropbear_exit(LOG_ERR, "Dropbear inetd mode is incompatible with debug -v");
+ }
+#endif
+
/* In case our inetd was lax in logging source addresses */
get_socket_address(0, NULL, NULL, &host, &port, 0);
dropbear_log(LOG_INFO, "Child connection from %s:%s", host, port);