Skip to content

Commit

Permalink
fixes #1421 Failure in tcp and tls local source handling
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Jan 26, 2021
1 parent e9c28ee commit 8060c6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/sp/transport/tcp/tcp.c
@@ -1,5 +1,5 @@
//
// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
// Copyright 2019 Devolutions <info@devolutions.net>
//
Expand Down Expand Up @@ -123,7 +123,7 @@ static void
tcptran_pipe_stop(void *arg)
{
tcptran_pipe *p = arg;

pa
nni_aio_stop(p->rxaio);
nni_aio_stop(p->txaio);
nni_aio_stop(p->negoaio);
Expand Down Expand Up @@ -745,6 +745,7 @@ tcptran_url_parse_source(nng_url *url, nng_sockaddr *sa, const nng_url *surl)

nni_resolv_ip(src, "0", af, true, sa, aio);
nni_aio_wait(aio);
rv = nni_aio_result(aio);
nni_aio_free(aio);
nni_free(src, len + 1);
return (rv);
Expand Down
3 changes: 2 additions & 1 deletion src/sp/transport/tls/tls.c
@@ -1,5 +1,5 @@
//
// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
// Copyright 2019 Devolutions <info@devolutions.net>
//
Expand Down Expand Up @@ -714,6 +714,7 @@ tlstran_url_parse_source(nni_url *url, nng_sockaddr *sa, const nni_url *surl)

nni_resolv_ip(src, "0", af, 1, sa, aio);
nni_aio_wait(aio);
rv = nni_aio_result(aio);
nni_aio_free(aio);
nni_free(src, len + 1);
return (rv);
Expand Down

0 comments on commit 8060c6f

Please sign in to comment.