Mercurial > dropbear
comparison svr-main.c @ 1498:ee7153a05ffc
disallow inetd -v
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 15 Feb 2018 23:30:54 +0800 |
parents | 0c16b4ccbd54 |
children | 1028b0111f89 |
comparison
equal
deleted
inserted
replaced
1497:bf9c06b8dad9 | 1498:ee7153a05ffc |
---|---|
81 char *host, *port = NULL; | 81 char *host, *port = NULL; |
82 | 82 |
83 /* Set up handlers, syslog, seed random */ | 83 /* Set up handlers, syslog, seed random */ |
84 commonsetup(); | 84 commonsetup(); |
85 | 85 |
86 #if DEBUG_TRACE | |
87 if (debug_trace) { | |
88 /* -v output goes to stderr which would get sent over the inetd network socket */ | |
89 dropbear_exit(LOG_ERR, "Dropbear inetd mode is incompatible with debug -v"); | |
90 } | |
91 #endif | |
92 | |
86 /* In case our inetd was lax in logging source addresses */ | 93 /* In case our inetd was lax in logging source addresses */ |
87 get_socket_address(0, NULL, NULL, &host, &port, 0); | 94 get_socket_address(0, NULL, NULL, &host, &port, 0); |
88 dropbear_log(LOG_INFO, "Child connection from %s:%s", host, port); | 95 dropbear_log(LOG_INFO, "Child connection from %s:%s", host, port); |
89 m_free(host); | 96 m_free(host); |
90 m_free(port); | 97 m_free(port); |