Fix valgrind issues.
[m6w6/libmemcached] / libtest / server_container.cc
index 3c84ad85c339b9e9a7ddfb5021503df1effe2713..244f80e6b4fb7545642132bd36cda7653977a587 100644 (file)
@@ -144,7 +144,10 @@ bool server_startup_st::is_helgrind() const
 bool server_startup(server_startup_st& construct, const std::string& server_type, in_port_t try_port, int argc, const char *argv[])
 {
   Outn();
-  (void)try_port;
+  if (try_port <= 0)
+  {
+    libtest::fatal(LIBYATL_DEFAULT_PARAM, "was passed the invalid port number %d", int(try_port));
+  }
 
   libtest::Server *server= NULL;
   if (0)