comparison svr-main.c @ 1504:bd0bc6b5a87c

Merge branch 'master' of github.com:mkj/dropbear
author Matt Johnston <matt@ucc.asn.au>
date Fri, 16 Feb 2018 23:33:46 +0800
parents 1028b0111f89
children 47f36d8565cf
comparison
equal deleted inserted replaced
1503:78d8c3ffdfe1 1504:bd0bc6b5a87c
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);