Fix swapped src and dest address pointers
Assert in create_connection is raised immediately with a null
destination.
@@ -385,7 +385,7 @@ int main(int argc, char **argv)
if (!is_server()) {
/* initiate a connection, and open a stream */
int ret;
- if ((ret = quicly_connect(&client, &ctx, host, NULL, (struct sockaddr *)&sa, &next_cid, ptls_iovec_init(NULL, 0), NULL,
+ if ((ret = quicly_connect(&client, &ctx, host, (struct sockaddr *)&sa, NULL, &next_cid, ptls_iovec_init(NULL, 0), NULL,
NULL)) != 0) {
fprintf(stderr, "quicly_connect failed:%d\n", ret);
exit(1);
