summaryrefslogtreecommitdiff
path: root/mactelnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'mactelnet.c')
-rw-r--r--mactelnet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mactelnet.c b/mactelnet.c
index e48e4db..0006f07 100644
--- a/mactelnet.c
+++ b/mactelnet.c
@@ -69,6 +69,7 @@ static struct in_addr destip;
static int sourceport;
static int connect_timeout = CONNECT_TIMEOUT;
+static int mndp_timeout = 0;
static int is_a_tty = 1;
static int quiet_mode = 0;
@@ -471,6 +472,7 @@ int main (int argc, char **argv) {
case 't':
connect_timeout = atoi(optarg);
+ mndp_timeout = connect_timeout;
break;
case 'v':
@@ -483,7 +485,7 @@ int main (int argc, char **argv) {
break;
case 'l':
- return mndp(connect_timeout);
+ return mndp(mndp_timeout);
break;
case 'h':