Skip to content

Commit

Permalink
When closing the io handle set p_ctx->gfd to NULL
Browse files Browse the repository at this point in the history
Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
  • Loading branch information
mchangir authored and Marco van Wieringen committed Sep 21, 2015
1 parent 87bd47b commit 104c783
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/filed/gfapi-fd.c
Expand Up @@ -1388,6 +1388,7 @@ static bRC pluginIO(bpContext *ctx, struct io_pkt *io)
io->io_errno = errno;
goto bail_out;
}
p_ctx->gfd = NULL;
} else {
io->status = -1;
io->io_errno = EBADF;
Expand Down

0 comments on commit 104c783

Please sign in to comment.