X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fcommand_server.cpp;h=e41d41bc85df23da9d66f5c7e2de2de8fbb3b735;hp=91011fdd8eb2f2d9cf902097bd0db96df648f623;hb=1bdd13c030b192cd3087eee64a581a0d43766d16;hpb=9a5d7790b094439b9a6f16983e20493c0e43ee02 diff --git a/src/command_server.cpp b/src/command_server.cpp index 91011fd..e41d41b 100644 --- a/src/command_server.cpp +++ b/src/command_server.cpp @@ -55,6 +55,9 @@ void command_server::send_hello(unsigned int conn_id) { server_connection* sc=s.get_connection(conn_id); + if (!sc) + return; // connection not existing, so no hello + std::ostringstream hello; hello << "T2Nv" << PROTOCOL_VERSION << ';';