From b31a2824a5a2abfd8b7dc68fec2d266dd5f943d7 Mon Sep 17 00:00:00 2001 From: Håkon Nessjøen Date: Tue, 8 Jan 2013 16:34:54 +0100 Subject: Bugfix for last commit --- mactelnet.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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': -- cgit v1.2.3