--- projects/cms/source/host/ihost-perl/ihost.pl 2001/03/01 18:53:42 1.23 +++ projects/cms/source/host/ihost-perl/ihost.pl 2001/03/06 08:38:42 1.24 @@ -10,7 +10,7 @@ # - pjm2@ukc.ac.uk # # $Author: pjm2 $ -# $Id: ihost.pl,v 1.23 2001/03/01 18:53:42 pjm2 Exp $ +# $Id: ihost.pl,v 1.24 2001/03/06 08:38:42 pjm2 Exp $ #------------------------------------------------------------ $| = 1; @@ -151,9 +151,17 @@ sub tcp_configure() { print $sock "FILTER\n"; $response = <$sock>; + unless (defined($response)) { + print "Failed: Could not get a filter address from the filter manager.\n"; + exit(1); + } chop $response; $response =~ /(.*);(.*);(.*)/; ($filter_addr, $udp_port, $tcp_port) = ($1, $2, $3); + unless (defined($filter_addr) && defined($udp_port) && defined($tcp_port)) { + print "Failed: Filter address response from server did not make sense: $response\n"; + exit(1); + } print "Got filter data ($filter_addr, $udp_port, $tcp_port)\n";