Verify $port_request defined before scanning it for error purposes
This commit is contained in:
+1
-1
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user