diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-04 12:47:26 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-04 12:47:26 -0800 |
| commit | 7eb7471b35dd0e5b9e2da0668376af5b218264e6 (patch) | |
| tree | 87a7ddcfd94200c458d3ba29e420c4c61371c9e3 /src/transport | |
| parent | a1d543fc45dbd066020c8c15ea37421bdd49bc10 (diff) | |
| download | nng-7eb7471b35dd0e5b9e2da0668376af5b218264e6.tar.gz nng-7eb7471b35dd0e5b9e2da0668376af5b218264e6.tar.bz2 nng-7eb7471b35dd0e5b9e2da0668376af5b218264e6.zip | |
TCP listen and accept test.
There is an occasional use-after-free bug we need to fix still.
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 8cd91044..00d9a2f3 100644 --- a/src/transport/tcp/tcp.c +++ b/src/transport/tcp/tcp.c @@ -401,7 +401,7 @@ nni_tcp_ep_accept(void *arg, void **pipep) int rv; - if ((pipe = NNI_ALLOC_STRUCT(pipe)) != NULL) { + if ((pipe = NNI_ALLOC_STRUCT(pipe)) == NULL) { return (NNG_ENOMEM); } pipe->proto = ep->proto; |
