diff svr-tcpfwd.c @ 1541:bb55dffab5ba

don't log server listen ports
author Matt Johnston <matt@ucc.asn.au>
date Mon, 26 Feb 2018 22:12:39 +0800
parents 73aa542e76fe
children 2c902644036d
line wrap: on
line diff
--- a/svr-tcpfwd.c	Mon Feb 26 22:08:53 2018 +0800
+++ b/svr-tcpfwd.c	Mon Feb 26 22:12:39 2018 +0800
@@ -94,7 +94,7 @@
 			buf_putbyte(ses.writepayload, SSH_MSG_REQUEST_SUCCESS);
 			buf_putint(ses.writepayload, allocated_listen_port);
 			encrypt_packet();
-			wantreply = 0; //so out does not do so
+			wantreply = 0; /* avoid out: below sending another reply */
 		}
 	} else if (strcmp("cancel-tcpip-forward", reqname) == 0) {
 		ret = svr_cancelremotetcp();
@@ -212,9 +212,6 @@
 	if (DROPBEAR_SUCCESS == ret) {
 		tcpinfo->listenport = get_sock_port(ses.listeners[0]->socks[0]);
 		*allocated_listen_port = tcpinfo->listenport;
-		dropbear_log(LOG_INFO, "tcpip-forward %s:%d '%s'", 
-			((NULL == tcpinfo->listenaddr)?"localhost":tcpinfo->listenaddr), 
-			tcpinfo->listenport, ses.authstate.pw_name);
 	}
 
 out: