1
0
Fork 0

Do not crash when specifying an unsupported transport medium for an I/O protocol.

This commit is contained in:
ThorstenB 2017-11-13 19:08:05 +01:00
parent 2bf5a96aec
commit dd7d54cfcc

View file

@ -328,6 +328,12 @@ FGIO::parse_port_config( const string& config )
io->set_io_channel( new SGSocket( hostname, port, style ) );
}
else
{
SG_LOG( SG_IO, SG_ALERT, "Unknown transport medium \"" << medium << "\" in \"" << config << "\"");
delete io;
return NULL;
}
return io;
}