diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-04 11:03:54 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-04 11:03:54 -0800 |
| commit | a1d543fc45dbd066020c8c15ea37421bdd49bc10 (patch) | |
| tree | ffe23cc0352990efb71956effa47d6d1f63ed9e8 /src/transport | |
| parent | 4e8b4ec4396f13665dccc03363c1378cabaefeb4 (diff) | |
| download | nng-a1d543fc45dbd066020c8c15ea37421bdd49bc10.tar.gz nng-a1d543fc45dbd066020c8c15ea37421bdd49bc10.tar.bz2 nng-a1d543fc45dbd066020c8c15ea37421bdd49bc10.zip | |
Test for duplicate address listen, and fix in TCP for same.
Diffstat (limited to 'src/transport')
| -rw-r--r-- | src/transport/tcp/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/tcp/tcp.c b/src/transport/tcp/tcp.c index 3fe31f9b..8cd91044 100644 --- a/src/transport/tcp/tcp.c +++ b/src/transport/tcp/tcp.c @@ -386,7 +386,7 @@ nni_tcp_ep_bind(void *arg) } baddr.s_un.s_in.sa_port = port; - if ((rv == nni_plat_tcp_listen(&ep->fd, &baddr)) != 0) { + if ((rv = nni_plat_tcp_listen(&ep->fd, &baddr)) != 0) { return (rv); } return (0); |
