diff options
Diffstat (limited to 'source3/libsmb/clierror.c')
-rw-r--r-- | source3/libsmb/clierror.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/libsmb/clierror.c b/source3/libsmb/clierror.c index 52f4c03fe5..92c2cc2815 100644 --- a/source3/libsmb/clierror.c +++ b/source3/libsmb/clierror.c @@ -194,3 +194,10 @@ bool cli_state_is_connected(struct cli_state *cli) return true; } +void cli_state_disconnect(struct cli_state *cli) +{ + if (cli->fd != -1) { + close(cli->fd); + } + cli->fd = -1; +} |