Fixed TestConnect

* Due to a typo (and missing argument checks in sample-server) the
  command line for the test was invalid.
This commit is contained in:
akallabeth 2021-09-03 08:41:58 +02:00 committed by akallabeth
parent af8d1e5690
commit ad86192ac6

View File

@ -260,13 +260,13 @@ static int testSuccess(int port)
goto fail;
// Start sample server locally.
commandLineLen = strlen(exe) + strlen("--local-only --port=XXXXX") + 1;
commandLineLen = strlen(exe) + strlen("--port=XXXXX") + 1;
commandLine = malloc(commandLineLen);
if (!commandLine)
goto fail;
_snprintf(commandLine, commandLineLen, "%s --local-only --port=%d", exe, port);
_snprintf(commandLine, commandLineLen, "%s --port=%d", exe, port);
memset(&si, 0, sizeof(si));
si.cb = sizeof(si);