From 05ec364b7dad80ea5ace0f1b01ca1dd38fc016df Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Fri, 9 Nov 2012 11:56:28 -0500 Subject: [PATCH] Verify $port_request defined before scanning it for error purposes --- scripts/mosh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mosh b/scripts/mosh index 737500d..d5ce42c 100755 --- a/scripts/mosh +++ b/scripts/mosh @@ -263,7 +263,7 @@ if ( $pid == 0 ) { # child die "Bad MOSH CONNECT string: $_\n"; } } else { - if ( $port_request =~ m{:} and m{Bad UDP port} ) { + if ( defined $port_request and $port_request =~ m{:} and m{Bad UDP port} ) { $bad_udp_port_warning = 1; } print "$_\n";