comparison svr-main.c @ 1501:1028b0111f89

merge
author Matt Johnston <matt@ucc.asn.au>
date Fri, 16 Feb 2018 23:17:48 +0800
parents 2d450c1056e3 ee7153a05ffc
children 47f36d8565cf
comparison
equal deleted inserted replaced
1500:35f38af1238b 1501:1028b0111f89
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);