diff options
author | José Bollo <jose.bollo@iot.bzh> | 2019-07-10 00:06:36 +0200 |
---|---|---|
committer | Jose Bollo <jose.bollo@iot.bzh> | 2019-07-18 15:38:02 +0200 |
commit | 51ab7c2f95d6d459302423a57cc617021ef6126d (patch) | |
tree | 20588afd25b3332c0f3c15eee09c8c61c6ff7f29 /src/afs-supervisor.c | |
parent | 6dfeafe7e4fa582b3db3f950136bc97f8611fc6d (diff) |
Fix bad memory access at client disconnection
The management of structures handling a client
connection to a exported --ws-server was accessing
freed memory. Tha commit fixes that issue.
Bug-AGL: SPEC-2651
Change-Id: I511218afc907308347bc422a8aead32ca00bdae6
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afs-supervisor.c')
-rw-r--r-- | src/afs-supervisor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afs-supervisor.c b/src/afs-supervisor.c index d36a3408..31b8b7c3 100644 --- a/src/afs-supervisor.c +++ b/src/afs-supervisor.c @@ -282,7 +282,7 @@ static void listening(void *closure, uint32_t revents, struct fdev *fdev) { if ((revents & EPOLLIN) != 0) accept_supervision_link((int)(intptr_t)closure); - if ((revents & EPOLLHUP) != 0) { + else if ((revents & EPOLLHUP) != 0) { ERROR("supervision socket closed"); exit(1); } |