Set the serverURI in the corresponding array of the connect options for test5-2d

Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
This commit is contained in:
Juergen Kosel 2017-04-07 14:50:41 +02:00
parent 168a38222e
commit 5809b05bb4
1 changed files with 11 additions and 0 deletions

View File

@ -1030,6 +1030,12 @@ int test2d(struct Options options)
opts.cleansession = 1;
opts.username = "testuser";
opts.password = "testpassword";
opts.serverURIs = (char**) malloc(1*sizeof(char*));
if (opts.serverURIs)
{
*opts.serverURIs = strdup(options.mutual_auth_connection);
opts.serverURIcount = 1;
}
opts.will = &wopts;
opts.will->message = "will message";
@ -2167,3 +2173,8 @@ int main(int argc, char** argv)
return rc;
}
/* Local Variables: */
/* indent-tabs-mode: t */
/* c-basic-offset: 8 */
/* End: */