(active_mode): hide failure of EPRT by setting verbose
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6686 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1269,6 +1269,7 @@ noport:
|
||||
char *cmd;
|
||||
char addr_str[256];
|
||||
int inet_af;
|
||||
int overbose;
|
||||
|
||||
if (inet_ntop (data_addr->sa_family, socket_get_address (data_addr),
|
||||
addr_str, sizeof(addr_str)) == NULL)
|
||||
@@ -1289,8 +1290,14 @@ noport:
|
||||
asprintf (&cmd, "EPRT |%d|%s|%d|",
|
||||
inet_af, addr_str, ntohs(socket_get_port (data_addr)));
|
||||
|
||||
overbose = verbose;
|
||||
if (debug == 0)
|
||||
verbose = -1;
|
||||
|
||||
result = command (cmd);
|
||||
|
||||
verbose = overbose;
|
||||
|
||||
if (result == ERROR) {
|
||||
struct sockaddr_in *sin = (struct sockaddr_in *)data_addr;
|
||||
|
||||
|
Reference in New Issue
Block a user