diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-07-06 20:23:59 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-07-06 20:23:59 -0700 |
| commit | e3e5021818e79fbe851bc6acf134037793127645 (patch) | |
| tree | 7a9fe031f6d22e0a25ddc1198f26dd5c3e79d876 /src/transport | |
| parent | 953ca274ae57f8edd12536a3dd15d134aa6e5576 (diff) | |
| download | nng-e3e5021818e79fbe851bc6acf134037793127645.tar.gz nng-e3e5021818e79fbe851bc6acf134037793127645.tar.bz2 nng-e3e5021818e79fbe851bc6acf134037793127645.zip | |
fixes #584 Use after-free in websocket
Diffstat (limited to 'src/transport')
| -rw-r--r-- | src/transport/ws/websocket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/ws/websocket.c b/src/transport/ws/websocket.c index b3aef756..81638d95 100644 --- a/src/transport/ws/websocket.c +++ b/src/transport/ws/websocket.c @@ -128,8 +128,8 @@ ws_pipe_recv_cancel(nni_aio *aio, int rv) nni_mtx_unlock(&p->mtx); return; } - nni_aio_abort(p->rxaio, rv); p->user_rxaio = NULL; + nni_aio_abort(p->rxaio, rv); nni_aio_finish_error(aio, rv); nni_mtx_unlock(&p->mtx); } |
